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
rohitrrohitr 

Create a filter logic in visualforce

I am building a merge app where i need to query account records based on some critieria.The critieria need to be defined using field filters (just the same way we have while creating a list view). Please help in writing a dynamic VF page where I can query records based on the field filter. I need help in creating the field filter and also should be able to add more filters and delete them. All this should happen dynamically.

Any code samples?

thanks in advance
Ashish_SFDCAshish_SFDC

Hi Rohit, 


See the blog for more information and Sample code: 

Building a Dynamic Search Page in Visualforce

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


Passing report filters as query params to Salesforce reports !

http://www.tgerm.com/2011/04/passing-params-to-reports-salesforce.html


Regards,
Ashish