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

share|improve this question
add comment

3 Answers 3

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

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>
            <div data-role="content" id="partList">            
                <ul id="pList" data-filter="true" data-inset="true" data-role="listview"  data-theme="c" data-dividertheme="b">
                </ul>
            </div>
        </div>
share|improve this answer
add comment

Your Answer

 
discard

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.