[SalesForce] Adding filters to the page

I am creating a visual force page which display Opportunities:

<apex:page standardController="Opportunity" recordSetVar="opportunities" tabstyle="opportunity" sidebar="false">
   <apex:pageBlock title="Opportunities">
      <apex:pageBlockTable value="{!opportunities}" var="opportunitiy">
         <apex:column value="{!opportunitiy.name}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
</apex:page>

It currently displays all Opportunities. The page has its own URL. I would like to be able to pass some query parameters into the URL (such as closed=true or amount>20,000) and then apply this filters so that only the Opportunities that match them are displayed.

Any tips?

Thanks

Best Answer

I think the only way to do the is to create a custom controller (either stand alone or extending the standard controller) and perform your filtering there.

Related Topic