You need to sign in to do that
Don't have an account?
mdinatale
Visualforce page search like standard search
I created a debt object and i have it opening a visualforce page on new and edit. I have a master-detail record to another object called creditor. On the standard edit there was a little page with a hour glass you could press to popup a search. How would i do this in the visual force page. Any help would be appreciated. Ive been trying diffrent things but can't figure it out.
It's a mangnifying glass, not an hourglass (that's what I thought it looked like, too!). But, to answer your question, create a record in memory in your controller that has a lookup field to the object you'd like to lookup, and then bind it to an <apex:inputField>.
Example:
You can also "roll your own" lookup, but that's a bit more code (yet, more flexible).