+ Start a Discussion

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

Hi Rohit, 

See the blog for more information and Sample code: 

Building a Dynamic Search Page in Visualforce


Passing report filters as query params to Salesforce reports !