function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
clouduserclouduser 

how to make the next button to go from one record to another from the detail record

Hey,

 

I have 2 visualforce pages..first page will list the records from SFDC using SOQL query with some conditions. Second vf page to display the details of the respective record when user clicks on the record. I just want to include the feature of next/previous record links on the 2nd vf page i.e. detailed page.

any thoughts?

 

regards

 

Avidev9Avidev9

Just another Idea

 

  • Do not create two pages
  • When user clicks on a record open detail in the same page and hide the rest or you can use the same controller on both the pages, by doing this you wont lose the list the was retrieved in the first page
  • When user clicks on the record try to get the index of the record in the list.
  • Use the index to implement next and forward
clouduserclouduser

thanks for the suggestion....