I have a Visualforce page using a Standard Set Controller, and I'm trying to set the filter ID without using an element on the page and without using a customer controller or extension.
Based on an answer to this post it should be possible by using filterId={a ListView ID}
in the URL, however this doesn't seem to work for me. Has this feature been depreciated (as I can't find any reference to it in any documentation), or has the parameter name changed?
I've also tried using apex:variable
and apex:param
, but neither of those worked.
AccountSetPage.page
<apex:page standardController="Account" recordSetVar="Accounts">
<apex:repeat value="{!Accounts}" var="a">
{!a.Name}
<br/>
</apex:repeat>
</apex:page>
Then visiting
https://c.eu2.visual.force.com/apex/AccountSetPage?filterId={filterId}
displays all Accounts, rather than the selected List View (which 100% does not include all Accounts, I've triple checked that).
apex:repeat
on{!listviewoptions}
.fcf
for the parameter name seems to work with no side effects as far as I can see. Write it up as an answer and I'll accept it. Thanks.