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, my new X200s comes with Vista Business preloaded and 3 CDs marked as "Windows XP Rescue and Recovery Disc", and "Windows XP Professional SP2 Product Recovery Disc 1 & 2", respectively. I want to repartition the disk, deleting V [More]
Hello, A billing document that we reversed earlier was printed later. Billing document type is S1 and output type assigned to it is RD00. We don't want them the users to print the document that was reversed or cancelled. How can we make this document [More]
Hello i need help!   For the last 3 weeks my itunes is not working ' itunes was not installed correctly please reinstall error 7 ". and quicktime isen't wokring either ' pleas install apple application support here is a list of thinks that i'v tried [More]
we are using ITS version of ESS and MSS version EP 6.0 and SAP R/3 5.0. Our client wants a report on Leave Request(with HTML). the worflow used is WS20000081. my question is there any standard report to check the Leave Request which are approved or r [More]
I am on the evaluation of different technologies, I tried to get out the details of minimum hardware requirements for Developers' Desktop, Developement Server, Production Server, with regards to the J2EE. I could not find the same on any of the docum [More]
Grid Infrastructure/DB Version : 11.2.0.3 Platform : RHEL 5.8 We have a 3-node cluster and I've configured the RAC service PKDS_UAT_01 with its preferred instance as JDSCFS3 $ srvctl config service -s PKDS_UAT_01 -d JDSCFS Service name: PKDS_UAT_01 S [More]
Hi, I have created fillable forms using Acrobat.  Then I inserted them in a Power Point presentation slide, one in each slide.  I used the "Action" function for the object to "Open" with mouse click in the presentation.  Using Adobe Re [More]
Can't download Adobe Pro, after 10 min only 1%, firewall is off.Hi BHWI, I'm sorry to hear that you're having trouble downloading Acrobat. Please try downloading directly from this page: Download Acrobat products | Standard, Pro | XI, X Before downlo [More]
Hello There Juts moved back to BT after a time away from them, after some trouble final cot connected to BT Broadband Option 2. I have a minor problem that I am not sure whether or not it supposed to work like this or not, can someone please advise. [More]
Hello I am trying to do this exception handling in string to numeric conversion. Everything is working fine except when i enter any number with letters f and d on exception handling doesnt work like for example if i enter 5f or 4 d progam is working [More]