Apex/VisualForce

StandardSetController

StandardSetController objects allow you to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce. In this tutorial, I am going to cover the tabbed pagination using the functionality of StandardSetController. In the below code – I have created 2 references of the set controller one holding the low revenue and the other one holding the high revenue Accounts. The initial page size is set as 10 so it will show only 10 records at a time and the various action methods helps in moving the records to first, last, next and previous.

Click here for demo

 

Feel Free to provide your valuable comments or point out any issues or scope of improvement in the above code.