function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PetyaPetya 

Add filter to visual force page

Hello

I made a simple visual force page with information from another object. I need also to add a filter similar like the filter on standard list views. What is the simplest way to achieve this? 

<apex:page sidebar="false">
<apex:enhancedList height="300" listId="00BD0000007A7sO" type="My Page"/>

</apex:page>

 

thanks

AdrianCCAdrianCC

Hello,

 

I think there's no existing functionality for what you want. You'll have to hand build the filter, maybe as a reusable vf component.

 

You could also hit the AppExchange to see if there isn't smth already build for your need. Take a look at http://appexchange.salesforce.com/listingDetail?listingId=a0N30000009vRA4EAM

 

Also, the type attribute on the enhancedlist in your code should take an sObject name(like Account). See here: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_enhancedList.htm

 

Thanks,

Adi

PetyaPetya

thanks