+ Start a Discussion
miha198206miha198206 

Different field types in search criteria

Hello,

 

I want to make custom search visualforce page. And give to users ability to select field name (like Account Owner, Expiration Date, etc.) then select operator (like equals, not equals, etc.) then select value (for Account Owner it should show lookup, for Expiration Date it should show date selection calendar).

 

What is the easiest way to achieve this?

 

Thanks.

Edwin VijayEdwin Vijay

Hi,

 

You can use Sobject Describe calls to get the field names, use select lists to display the user options. And have your apex class do the search.

 

Here is an article to get you started Customized search . Not exactly what you need, but may help you get started

 

Thanks,

Edwin