You need to sign in to do that
Don't have an account?
search list on vf page
Hello Guys,
I need a search list button on vf page. when we type for any keyword to search it should display all the items related to that word. How to achieve this?
I need a search list button on vf page. when we type for any keyword to search it should display all the items related to that word. How to achieve this?
Searching the text string across the object and across the field will be done by using SOSL. This is Salesforce Object Search Language. It has capability of searching a particular string across the multiple object.
SOSL statements evaluate to a list of sObjects, where each list contains the search results for a particular sObject type. The result lists are always returned in the same order as they were specified in the SOSL query.
I can give you code sample please go through it and try to implement your requirement.
Visual force page: Controller
If the answer helped you, mark it as solved.
Thank you
All Answers
Salesforce has a very powerful feature called SOQL.
You can get more information here (https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl.htm) and example here (http://www.sfdcpoint.com/salesforce/sosl-example-in-salesforce/).
You can put the button and return to users which objects were found with the searched word.
If the answer helped you, mark it as resolved.
thank you
Searching the text string across the object and across the field will be done by using SOSL. This is Salesforce Object Search Language. It has capability of searching a particular string across the multiple object.
SOSL statements evaluate to a list of sObjects, where each list contains the search results for a particular sObject type. The result lists are always returned in the same order as they were specified in the SOSL query.
I can give you code sample please go through it and try to implement your requirement.
Visual force page: Controller
If the answer helped you, mark it as solved.
Thank you