You need to sign in to do that
Don't have an account?
recordSetVar ??
HI there,
it's really confusing that how it is picking values by using {!filterId}
expression selectList component???
<apex:page standardController="Case" recordSetvar="cases">
<apex:pageBlock >
<apex:form id="theForm">
<apex:panelGrid columns="2">
<apex:outputLabel value="View:"/>
<apex:selectList value="{!filterId}" size="1">
<apex:actionSupport event="onchange" rerender="list"/>
<apex:selectOptions value="{!listviewoptions}"/>
</apex:selectList>
</apex:panelGrid>
<apex:pageBlockSection >
<apex:dataList var="c" value="{!cases}" id="list">
{!c.subject}
</apex:dataList>
</apex:pageBlockSection>
</apex:form>
</apex:pageBlock>
</apex:page>
if anyone knows it there than please update me..... thanks.. in advance :)
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".
#Note: If you want some custom value in the picklist then you need to use an extension and in that controller you can define your selectoption and selectlist.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
All Answers
refer below example
Page:
Controller
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".
#Note: If you want some custom value in the picklist then you need to use an extension and in that controller you can define your selectoption and selectlist.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
If the post helps you, then throw KUDOS by clicking on the star icon on the left. This will help other users to search.
Thanks
However is it possible to retain the last selected option in the list view .For ex : I have a tab names XYZ accounts which overrides accounts. There are three option in my listview like All account, Closed account and open accounts and If I have selected Open account it displays all the open accounts. Then I clicked on some other tab.Now if I again click on XYZ accounts, it should display the listview with "Open Account" options. However it is not happening. It is displaying list view with All accounts option. Pls reply
May i know what is the use of recorsetvar actually.?
www.cloudmurali.com