+ Start a Discussion
NapsterNapster 

How to search for different fields in the Look-up Search?

Dear Friends,

 

I have a problem to which i am not able to figure out a solution since long. I am hoping you guys would be able to shed some light on this. So here goes.

 

I have a apex page which has a look-up field to a custom object called DunsID. Here's a look:

 

[IMG]http://i40.tinypic.com/2en4xsm.jpg[/IMG]

 

Now, the DUNS ID is a number which can be searched. If i just click on the magnifing glass, all the results are returned Like follows :

 

[IMG]http://i44.tinypic.com/29pbsxh.jpg[/IMG]

 

 

When i search with a string or a part of a string for DUNS ID, i get the following results as such :

 

[IMG]http://i43.tinypic.com/otewk5.jpg[/IMG]

 

But i want to be able to search by typing in the CP Name instead of the DUNS ID, like if i type in Talk* or TalkTalk, the above resuts should be returned. But when i try doing the same, no results are shown, like follows:

 

[IMG]http://i44.tinypic.com/2it0gas.jpg[/IMG]

 

Could you guys please give me a way to do so??

 

Thanks and regards,

Surya Teja

Best Answer chosen by Admin (Salesforce Developers) 
KamsR_DEVKamsR_DEV

Hi,

 

This can be done to search the values in lookup based on any field values in lookup dialogue.

 

To make this possible, you should goto Setup>App Setup>Customize>Search>Search Settings.

 

Then, under the section Lookup Settings, you need to enable the checkbox option 'Enhanced Lookup' for your custom object 'DUNSID'.

 

 

Now, you try again it will work for sure...!

 

Have a nice day.

All Answers

KamsR_DEVKamsR_DEV

Hi,

 

This can be done to search the values in lookup based on any field values in lookup dialogue.

 

To make this possible, you should goto Setup>App Setup>Customize>Search>Search Settings.

 

Then, under the section Lookup Settings, you need to enable the checkbox option 'Enhanced Lookup' for your custom object 'DUNSID'.

 

 

Now, you try again it will work for sure...!

 

Have a nice day.

This was selected as the best answer
NapsterNapster
Thank you so much brother! Your solution was a Charm!