Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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="{!}"/>

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

For this you will have to create custom controller.

share|improve this answer

Here is an example where I filtered the items in a listview using HTML5. As I type, the characters entered filter the list down to matches anywhere in the string. In this example I have a list of parts that can be hundreds if items long that is accessed using a mobile device.

 <div data-role="page" data-theme="b" id="partspage">                
            <div data-role="header" data-position="fixed">
                <h2 id="partsHeader"></h2>
                <a href='#listpage' id="add" class='ui-btn-right' data-icon='back' data-theme="b">Back</a>
            <div data-role="content" id="partList">            
                <ul id="pList" data-filter="true" data-inset="true" data-role="listview"  data-theme="c" data-dividertheme="b">
share|improve this answer

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.