Activity Forums Salesforce® Discussions How can we implement pagination in Visualforce?

  • Saurabh

    Member
    April 24, 2017 at 1:37 pm

    Hi Manpreet

    In spring 12, Salesforce has come up with ability of SOQL to get records from position “X” instead of position “1” every time to help creating pagination feature.

    Pagination-in-SOQL-using-keyword-Offset

    Select Id, Name from Lead LIMIT 5 OFFSET 2

    Above query will return 5 Lead records starting from record number 10 (5×2).

    You can get more information by going through this link:https://developer.salesforce.com/blogs/developer-relations/2012/01/soql-offset-in-spring-12.html

    Hope it helps

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos