You need to sign in to do that
Don't have an account?
fullvalue
Using Salesforce popup lookup window
Let me explain. I am building a new page via s-control that is ajax and dojo. I have a need to add a owner to the record on this page. I would like to use the popup window that Salesforce uses when assigning a user to a record. How can I do this? Or should I just create my own?
Thanks!
Thanks!
Include the standard salesforce functions file (this will allow you to use the openLookup function later in example):
Code:
Place these hidden inputs in the body of your document (these hold the required values for the lookup to work and pass back the user's selection from the opened window):
Use this code to display the assiged field and the lookup icon (This is only a snippet from a full table you will need to hold the input field for assigned user and the lookup icon):
You may need to tweak the code from my fourth snippet to fit in your specific table because the TD tag I used will span three columns and you may only want it to span one.