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
AngulixAngulix 

Make user configurable filtering

Hi, 
How can I propose to my users a box where they can build filtering conditions based on database fields (like the filtering conditions when creating a report).

Example

accound.closedate < 2015-06-30
and 
account.territorry__c in ('EMEA','US')

Kindly point me to the right documentation piece if any

Thanks a lot for help
 
Best Answer chosen by Angulix
PratikPratik (Salesforce Developers) 
Hi Francoizix,

Below is link for a blog which has code for dynamic search.
http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

As per you requirement, you can build this and give the field like:
closedate & territorry__c  so user can type the input and accordingly account will be fetched and shown to users.

Hope this will help you to get started.

Thanks,
Pratik

All Answers

PratikPratik (Salesforce Developers) 
Hi Francoizix,

Below is link for a blog which has code for dynamic search.
http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/

As per you requirement, you can build this and give the field like:
closedate & territorry__c  so user can type the input and accordingly account will be fetched and shown to users.

Hope this will help you to get started.

Thanks,
Pratik
This was selected as the best answer
AngulixAngulix
Hi Pratik,
Thanks a lot of the post, the link is very good.
What Jeff explain is very interesting and very instructing for me.
Your answer brought me far more than expected.
PratikPratik (Salesforce Developers) 
Thanks! Glad it helped!

regards,
Pratik