You need to sign in to do that
Don't have an account?
SFDCExplorer
What is the purpose of "recordsetvar" attribute?
I have red in salesforce help pages that "recordsetvar" variable can be used to access data in the record collection. But I have never seen any vf page that is using "recordsetvar" as a variable to access the data in the record collection. If it is true ,can anybody let me know any example that is using this variable to access the record collection?
The recordSetVar attribute not only indicates that the page uses a list controller, it can indicates the variable name of the record collection. This variable can be used to access data in the record collection.
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".
check this visualforce page
Thanks,
Debasis
All Answers
The recordSetVar attribute not only indicates that the page uses a list controller, it can indicates the variable name of the record collection. This variable can be used to access data in the record collection.
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".
check this visualforce page
Thanks,
Debasis
Example 1:- Example 2:-
This attribute indicates that the page uses a set-oriented standard controller. The value of the attribute indicates the name of the set of records passed to the page. This record set can be used in expressions to return values for display on the page or to perform actions on the set of records. For example, 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>
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm
Please check below post for more information
1)http://salesforce.stackexchange.com/questions/97423/what-is-recordsetvar-and-where-is-it-used
Let us know if this will help you
Thanks
Amit Chaudhary