Sitemap

Amicuk Programming Answers

Next/previous button into detail view???

2015-10-11   Views:0

Advertisement

Hi all, I have a tableview and it feeds the plist data into a detail view.... I would like to have two buttons in the detail view, one to move forward through the array from the last tableview and one to move backwards through the array. The data wou

Hi all,
I have a tableview and it feeds the plist data into a detail view.... I would like to have two buttons in the detail view, one to move forward through the array from the last tableview and one to move backwards through the array. The data would be displayed in the detail view.
here is the kind of plist I have....
<array>
<dict>
<key>name</key>
<string>Category A</string>
<key>ItemChild</key>
<array>
<string>aaaa</string>
<string>bbbb</string>
<string>cccc</string>
<string>dddd</string>
</array>
</dict>
<dict>
<key>name</key>
<string>Category B</string>
<key>ItemChild</key>
<array>
<string>aaaa</string>
<string>bbbb</string>
<string>cccc</string>
<string>dddd</string>
</array>
</dict>
<dict>
<key>name</key>
<string>Category C</string>
<key>ItemChild</key>
<array>
<string>aaaa</string>
<string>bbbb</string>
<string>cccc</string>
<string>dddd</string>
</array>
</dict>
</array>
</plist>
To try to pass the array and position in array through to the detail view I have put this code into my second view controller....
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *myLabel = [self.dataList1 objectAtIndex:indexPath.row];
FinalViewController *dvController = [[FinalViewController alloc] initWithNibName:@"FinalViewController" bundle:nil];
dvController.myLabel = myLabel;
dvController.title = [self.dataList1 objectAtIndex:indexPath.row];
dvController.currentRow = indexPath.row;
dvController.dataList1 = self.dataList1;
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
dvController = nil;
in my detail view.h I have added
NSArray *dataList1;
int currentRow;
@property (nonatomic, retain) NSArray *dataList1;
@property (nonatomic, assign) int currentRow;
-(IBAction) getNext;
and in my detail view.m I have put...
- (IBAction) getNext{
if (self.currentRow>=0) {
currentRow = currentRow-1;
NSString *data1 = [dataList1 objectAtIndex:currentRow];
theLabel.text = data1;
however the second view controller doesn't seem to be passing the array or the position in the array through??? However I am kind of new to this and not to sure how to pass that information through.???
any help would be great,
thanks

The replay answer
Advertisement
Hi,
According to your post, my understanding is that you wanted to use the next and previous control in announcements list webpart.
You can refer to the following thread, Ashish Patel had written a details explanation about it.
http://sharepoint.stackexchange.com/questions/25680/announcements-webpart-customization
what’s more, we can use the JQuery to query the announcement list, then built a html structure to work with some plugins such as the following.
http://jquery.malsup.com/cycle/int2.html
http://www.gmarwaha.com/jquery/jcarousellite/#demo
Thanks & Regards,
Jason 
Jason Guo
TechNet Community Support

Go to See the other 6 answers

Next/previous button into detail view???

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I have a tableview and it feeds the plist data into a detail view.... I would like to have two buttons in the detail view, one to move forward through the array from the last tableview and one to move backwards through the array. The data wou[More]

ITunes 11: Next/Previous buttons in Grid View

Category:DefaultRelease time:-0001-11-30Views:130

Clicking on the next/previous buttons in list view work as expected, i.e. the next or previous song plays!  However, in Grid View, the playlist just stops completely when I click next or previous!!  Why doesn't iTunes play the next song in the playli[More]

Next and Previous button on detail page

Category:DefaultRelease time:2015-10-11Views:130

I am new to Apex development and have a need to develop an application that has 2 pages. The first page displays a list of employees for instance and allows the user to sort the list on difference columns e.g., first name, last name, salary etc. The[More]

Need Next Previous Button on List view webpart

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, 5 items are displaying from the announcement list on the homepage. The client is asking to give next and previous button on the webpart so more than 5 announcements can be seen by the user. What are the various options to implement? Does 2013[More]

ADF Faces and multiframe window for master/detail view

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a web page divide into 2 frames : frame1, the master view and frame2 the detail view. When I load the whole web page, the master frame print all the paginated list. Each row has a "show more" button. When I click one, the correspondin[More]

'Next' and 'Previous' buttons in master/detail region

Category:DefaultRelease time:2015-10-11Views:130

Hi, I've managed to successfully create a master/detail region which is basically a very simple photo gallery. The left column shows the thumbnails, and when I click on them it shows the full-size version in the right column. I've been trawling userg[More]

Help with detail view on photo page... no help from previous post!

Category:DefaultRelease time:-0001-11-30Views:130

I posted these questions a few days ago and although people have been looking no one has any suggestions yet... Is my request too complicated? Old Toad, Wyodor, Cyclosaurus... would you have any tips? Many thanks I am using iweb to create my site and[More]

Does message viewer offer "next" and "previous" buttons?

Category:DefaultRelease time:-0001-11-30Views:130

I would really like to use Mail and get away from Entourage, but I am addicted to the next and previous buttons when viewing my mail. Have they been added to the latest version of mail? I see them on the iPad, so I am hopeful. Thanks, all.Thanks for[More]

Next and Previous buttons in  Single Row View

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, How can we add Javascript function call to Next and Previous buttons in IR Single Row View. Any ones help is much appreciated. ThanksThey make a call to JavaScript, I'm guessing you knew that? I'm 96.7% JS illiterate, so I'm incapable of expl[More]

Removing Buttons in Collaboration Task Detail View

Category:DefaultRelease time:-0001-11-30Views:130

Hello All, I have a requirement to remove the "Edit" button from the " Item Detail" view of the SAP Enterprise Portal NW04 SP14 collaboration task. I would appreciate (and reward) very useful answers. Thank you. Regards, CollinsHi, Act[More]

Replacement of detail view controller using segues

Category:DefaultRelease time:-0001-11-30Views:130

Im trying to get a button in the master view controller of a UISplitView controller to change the image being shown in the detail view controller of the same UISplitView controller. Im trying to find out if it is possible to do this with segues alone[More]

Hot
Hi guys, basically I have backed up my iphone using icloud back up. I was just wondering when I restore this on my new iphone everything will appear right? Cos I have this app with my main pictures and I was wondering if that will restore too along w [More]
Need help in creating tabbed webpart in sharepoint and no of tabs in webpart should be dynamic. under each tab i should be able to add multiple webparts(each tab will have webpart zone) programatically i need to generate tabs and insert webpart zones [More]
I tried to reinstall os 10.3 on my ibook G4 and I got through two disk and had to leave so...I was unable to finish the installation. When I returned to finish the window that comes up says sleep, restart, shutdown. I have tried to just restart, with [More]
Hi All, We are facing one issue. In GRC fire fighters, 1) FF logs  not updating in  Consolidated reporting 2) FF logs are updating in FF LOG REPORT, but the session details are empty 3) FF log updated in Reason code & activity report, it is fine 4) F [More]
Guys: I need to add 5 hours to the date in a date column. I did it the foll. way. for ex: select to_char(sysdate, 'mm/dd/yy hh:mi:ss'), to_char((sysdate + (5/24)), 'mm/dd/yy hh:mi:ss;) from dual; It works! The second column shows that 3 hours has bee [More]
I am trying to do a hyper-v failover clustering project and we have following hardwares: 2x HP DL 380 G8 with 8 LAN ports 1x HP MSA 2000 with dual controller (each controller has 2 iSCSI LAN ports) 2x 24 port gig switch (HP Procurve) I don't know whe [More]
Hello, I need restore a database in a different server. I have a backup of 01-Jan-2008 on tape on DataProtector and I need to restore in another server in order to extract some information for a datawarehouse, I need restore with a name different bec [More]
Does Adobe make a product to read pdf's on MS Windows Mobile 5.0?If your mobile browser cannot handle Flash content, you will not be able to use Acrobat.com for this. These forums are specific to the Acrobat.com website and its set of hosted services [More]
i get a error message saying that i don't have sufficient memory to upload music from my own cd library? what is going on? how can I change this, i have like 2 Terabytes of space on my hard drive? can someonw help me resolve this issue?Maybe if the e [More]
Hi, I have a LOV on Item Field,and the table has the Items ex: 8091,8091S. User Enters the 8091 the LOV Window is automatically validating and finding the two results and poping up the window with results 8091 and 8091S. actually what ever user enter [More]