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
Hello, I just downloaded the trial for Premiere Elements 12. When I first open the program and click new project, the program opens then a window pops up that says "Please Log-In with an Admin account to access Adobe Premiere Elements"  I am the [More]
We have BI servers (Primary & Secondary) and both are on cluster (Load Balancing). Users are able to connect both servers without any issues. Primary server Scheduler is Active and Secondary scheduler one is Inactive all the time. If I make Secondary [More]
Hi SDNers, I have a question regarding securing a SOAP Sender scenario using HTTPS. We are on PI 7.11 and have a SOAP-PI-RFC scenario. I have used a HTTP Sender instead of a SOAP channel to configure the option of 'HTTPS without Client Authentication [More]
I have been trying for hours to start my Photos App. It keeps saying via thermometer that it's either Preparing, Updating or Uploading, and this happens for hours with absolutely no progress on the "thermomether". I have been monitoring on Activ [More]
Hi, Im trying to set the "like" field of the statement.but it is not executing as expected.Could anybody please tell me,"how to set the like field in statements. Here is my code. PreparedStatement psum=con.prepareStatement("select coun [More]
When I click on Firefox, I enter the then type in a site or subject, and every time the response is "Unable to connect" box. This situation began 17.08.2010.In Firefox 3.6.4 and later the default connection settings have been changed to "Us [More]
This is probably a very simple problem but I can't work it out! We haven't had our server for very long and being a small agency we don't have a Sys Admin. We have had no problems with setting up the server, working from the server, sharing etc but c [More]
With Mountain Lion 10.8 and 10.8.1 sound volume with in iTunes keeps changing. This did not happen with in 10.7 or earlier versions. There have been no other changes.I really lost my patience, i intalled it again and seems ti be ok but all of a sudde [More]
Hi, http://addvisors.com/projects/rothwellGornt/test/test.html Above is a link to view the project I'm working on. Once the site loads if you go to the "Contact Us" page the content doesn't load correctly. I'm using an extrnal .xml and .css file [More]
Hi,           Weblogic 7.0.2.0           remote Weblogic 7.0.2.0           I have a MDB that is listening to a remote topic.           The deployment is ok, and when I monitor the MDB in the weblogic console           the connection Alive is true, so [More]