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
My scanner is a couple years old and it scanned it to version 9. The government website I'm trying to upload to is terrible and won't accept version 9 or earlier. I don't understand why; it's all PDF. Adobe Reader 11 can open version 9 so why can't t [More]
I’m creating a  SNP Purchase Requisition in APO and when it is  published to R/3, a Purchase Requisition document is created in R/3. When this PR is created in R/3, I want the Item Category to be determined based on the Material master Special Procur [More]
I installed completely Oracle9i on my system. I have to make databases, make forms and generate reports for my scool project. I cannot login to sql Plus using scott tiger . I think the problem is with HOST STRING. Can anyone help please. Thank you Sh [More]
All the PDF links on otn for 10g Release 2 (10.1.2.0.0) for Solaris Operating System (SPARC) are dead http 404.Issue resolved; thanks. Cheers, OTNRead other 2 answers [More]
hello world, i have a problem, i have implemented a query that is using in different schema. These schemas have same structure, therefore to extract information i must use the same query but I must specify the different schemas to select the table. T [More]
I am creating PDF form using LiveCycle 8.0. 1) Using SaveAs the form in PDF (non editable) by using button and javascript   ( app.execMenuItem("SaveAs");      myScript.LoclAllFields("form1");) this code is not working. 2) show / hide t [More]
I have researched all the postings about WebAccess and 404 errors with no resolution to my issue. I have a Windows 2003 server for use with WebAccess 7 and I am getting 404 errors when trying to access http://<server>/gw/webacc. Not sure what else t [More]
I want to be able to print receipts using Square Credit Card App - Is this possible? https://help.squareup.com/Read other 2 answers [More]
Hi Friends, I have a customer (xyz) whose account group  is End Customer, now this xyz customer has been replaced by a external customer(abc) . In xyz master data in search field 2 we have added a functionality (MC:"abc"), so what MC: does is gi [More]
I have been having problems with safari recently as it sometimes refuses to refresh or load Facebook. The last time i tried i got the following prompt which looked suspicious. Needless to say I didn't download anything...Try the suggestions by Linc D [More]