Activity › Forums › Salesforce® Discussions › What is the use of recordSetVar on Salesforce visualforce page?
Tagged: Salesforce Records, Salesforce Visualforce, Salesforce Visualforce Page, Standard Controller
-
What is the use of recordSetVar on Salesforce visualforce page?
Posted by PRANAV on September 29, 2016 at 1:49 PMHi All,
What is the use of recordSetVar on visualforce page?
Thanks.
Parul replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Hi Pranav,
RecordSetvar is used on vf page to display a list of records when using standard controller on the page
- [adinserter block='9']
-
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.
-
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.