Activity Forums Salesforce® Discussions What is 'ApexPages.StandardSetController' in Salesforce?

  • Visali

    Member
    April 21, 2020 at 1:49 pm

    Hi,
    ApexPages.StandardSetController (documentation) contains a list of records (one or more), and has additional functions to facilitate pagination (moving between pages) and updating a number of records at once.
    List<account> accountList = [SELECT Name FROM Account LIMIT 20];
    ApexPages.StandardSetController ssc = new ApexPages.StandardSetController(accountList);
    Thanks,
    Visali.

  • Pooja

    Member
    April 21, 2020 at 2:24 pm

    It contains a list of records (one or more), and has additional functions to facilitate pagination (moving between pages) and updating a number of records at once.

  • Shweta

    Member
    April 21, 2020 at 2:50 pm

    StandardSetController allows us to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce.
    e.g- when you want to override a tab or list view with your custom visualforce page.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos