Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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}"/>

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?


share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

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.

share|improve this answer
add comment

For this you will have to create custom controller.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.