+ Start a Discussion
NallareddyNallareddy 

What is RecordSetVar?

What is RecordSetVar?? How can i use this

Thanks in Advance

 
Best Answer chosen by Nallareddy
Sai Ram ASai Ram A
Hello Vijay

As all550 explained Recordsetvar is used to retun the List of sObject records. 
Little more in detail: 
It is the in built salesforce functionality that comes with standard controller. 
It will display the salesforce pre-defined options for the selectoptions by the variable "listviewoptions".
And they internally manage the selected value(selectlist) with the variable "filterId".

Follow link for info: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_page.htm


Thank you
BLearn

All Answers

sfdc550sfdc550
recordSetVar attribute in Visual force page:
  This attribute indicates that VF page uses set oriented standard controller. 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.
    For example given below VF page, if your page is using the standard accounts controller, and recordSetVar is set to "accounts", you could create a simple pageBlockTable of account records by doing the following:
 
<apex:pageBlockTable   value="{!accounts}" var="a">
<apex:column value="{!a.name}"/>
</apex:pageBlockTable>

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.


Sai Ram ASai Ram A
Hello Vijay

As all550 explained Recordsetvar is used to retun the List of sObject records. 
Little more in detail: 
It is the in built salesforce functionality that comes with standard controller. 
It will display the salesforce pre-defined options for the selectoptions by the variable "listviewoptions".
And they internally manage the selected value(selectlist) with the variable "filterId".

Follow link for info: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_page.htm


Thank you
BLearn
This was selected as the best answer