Activity Forums Salesforce® Discussions What is the use of recordSetVar on Salesforce visualforce page?

  • Ajit

    Member
    September 29, 2016 at 1:57 pm

    Hi Pranav,

    RecordSetvar is used on vf page to display a list of records when using standard controller on the page

  • shariq

    Member
    September 13, 2018 at 8:01 am

    Hi,

    RecordSetVar tag in Visualforce Page. recordSetVar attribute in Visual force page: ... The value of the attribute indicates name of the set of records passed to the page means collection records. This record set can be used in the expressions to return values for display on the page or to perform actions on set of records.

  • Parul

    Member
    September 13, 2018 at 9:29 am

    Hi

    The recordSetVar attribute indicates that the page uses a list controller and the variable name of the record collection. This variable can be used to access data in the record collection.

    For example VF Page:
    <apex:page standardController="Account" recordSetVar="accounts">
    <apex:dataList var="a" value="{!accounts}" type="1">
    {!a.name}
    </apex:dataList>
    </apex:page>
    Above displays all account with number.

     

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos