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
t.deepthi05t.deepthi05 

Loading all the records in single page

Hi ,

I want to display mutiple records on page using pagination.

i want create a next button and on clicking of this button the want display next set of records along with the current records.

Is there any way that I can append the newly fetched records with previous records?

Can i have sample code for the above requirement
bob_buzzardbob_buzzard
I've posted an answer with code on your cross post at : https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AUsHIAW
Swati GSwati G
Hi,

You can use standardsetcontroller for that but it has limitation. 

StandardSetController: http://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardsetcontroller.htm 

Here is the blog which has sample code
http://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/