Skip to main content
Tweeted twitter.com/#!/StackSalesforce/status/448731147150049280
added 88 characters in body
Source Link
Alex Tennant
  • 13.7k
  • 5
  • 58
  • 85

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.

SSCCE:

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).

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?

SSCCE:

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).

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.

SSCCE:

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).

Source Link
Alex Tennant
  • 13.7k
  • 5
  • 58
  • 85

Can you use a ListView filter with a StandardSetController without a custom controller or extension?

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?

SSCCE:

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).