function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raveendra Raju 5Raveendra Raju 5 

Need to display popup window with the list of users in visual force

Hi All,

I have a visual force page with the input field name "owner". I want to add an icon to this field and when ever it is clicked, I want to display a popup window with all the users who are available in the users object . Once the user name is selected from the popup then that user name should be populated into the input field which is available in visual force page. If there is any standard functionality, please let me know.

If there is no standard functionality then please send me the sample code to achive this requirment.

 
Abhijeet Anand 6Abhijeet Anand 6
Is your input field a look up to User object?
Abhijeet Anand 6Abhijeet Anand 6
Hope this helps:

http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/
Raveendra Raju 5Raveendra Raju 5
I want to have it in visual force page same like lookup field to user object in any object.
Abhijeet Anand 6Abhijeet Anand 6
Check this URL

http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/

It serves your purpose
Veenesh VikramVeenesh Vikram
Are you trying to replicate the salesforce standard "Lookup" functionality?
If this is the case, why dont you change the type of field Owner to "Lookup(On User) object. If you do that the VF will automatically show the lookup Icon and the whole functionality will be replicated.

If you cannot d=change the type, create a technical hidded lookup field on the object, expose it on the VF page and copy the value from this field to your field in the VF page's controller.

Veenesh
Raveendra Raju 5Raveendra Raju 5
Hi Veenesh,
Could you help me how to change the field type in visual force?