You need to sign in to do that
Don't have an account?
Board salesforce
query and binding fieldset fields in query for search functionality?
Hi all,
As we do serch with getter setter to filiter the records on name etc.
I am trying using fieldsets , instead of changing the code always i try to add field in the fieldset so i can have search for added field dynamically.here the problem is how to compare name using fieldsets in the query?
can any one help me
Thanks ,
Ram.
As we do serch with getter setter to filiter the records on name etc.
I am trying using fieldsets , instead of changing the code always i try to add field in the fieldset so i can have search for added field dynamically.here the problem is how to compare name using fieldsets in the query?
can any one help me
Thanks ,
Ram.
- Currently, if you want to create an SOQL query, but have it be configurable and dynamically populated via a fieldset, you have to use dynamic SOQL, and loop through, creating a comma separated list of fields to query for. Instead, developers should be able to use regular SOQL and variable binding, but also with fieldsets.
- Please refer the below link for reference.
- https://success.salesforce.com/ideaView?id=08730000000DieoAAC
I hope it will be helpful.Best Regards
Rahul Kumar