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
daniel.duartedaniel.duarte 

VisualForce Filter Page

Hello,

I have a custom object MyObject__c that has some fields and relationships, like Quantity__c, Price__c, and a relationship with an Account.

I need a page that allows the user to specify none, one, or more than one of these fields and list the corresponding records.

I wish that the user can type a number in the Quantity or Price fields, or choose one of the existing Accounts, and then the instances of MyObject that satisfy the filter are shown.

I believe I will use a Command Button with the action={!list}, but I'm having trouble to think a way of getting the input values and filtering it. Can anyone help?

I just want something to start with.

Thanks

venkatasubhashkvenkatasubhashk

Hi

 

You can Filter by using Search criteria ,You can Build a Dynamic Visualforce Page to do this ,Please refer following link,will be useful

 

http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

 

Hope this Helps you !!