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
Test999999Test999999 

Paginated list of objects - Possible ?

Is it possible to take a List of objects and present them in a paginated pageblocktable ? If so, could you post some code / link that describes how ?

 

Note, the objects are NOT the result of a query.

 

Thanks,

 

Bill

Pradeep_NavatarPradeep_Navatar

Refer http://salesforcesource.blogspot.com/2008/09/how-to-support-paging-of-data-in-your.html to Implement the pagination without set controller. You should implement your Own pagination method without using the StandardSetController class and after that implement the sorting part.

Refer http://salesforcesource.blogspot.com/2008/11/adding-sorting-capability-to.html

 

Hope this helps.

Test999999Test999999

On that first link, Jon Mountjoy of salesforce says that pagination is now natively supported.  But, to confirm, that is not true for lists of objects, correct ?

 

Thanks,

 

Bill

_Prasu__Prasu_

Yes, that is correct. 

 

Following link should help you for getting it work with List.

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