You need to sign in to do that
Don't have an account?
bujji
Show User Lookup in VF page
Hi Guys,
I am trying to show the user lookup in VF page. Unfortunately i am not able to as it showing any lookup icon. Below is my controller code and vf code.
How to show Lookup Icon, so that user can select the user.
* All fields are showing lookup except the Id
public User usr {get;set;}
<apex:outputLabel >User Lookup: </apex:outputLabel>
<apex:inputField value="{!usr.Id}"/>
Thanks,
Bujji
I am trying to show the user lookup in VF page. Unfortunately i am not able to as it showing any lookup icon. Below is my controller code and vf code.
How to show Lookup Icon, so that user can select the user.
* All fields are showing lookup except the Id
public User usr {get;set;}
<apex:outputLabel >User Lookup: </apex:outputLabel>
<apex:inputField value="{!usr.Id}"/>
Thanks,
Bujji
Is there relationship between your object and user Sobject?
if no then Create a lookUp relationship and use
replace account with your object .
Regards
Viru
Controller code
----------------------
public AccountTeamMember atm {get;set;}
vf page code
-----------------
<apex:outputLabel >User Lookup: </apex:outputLabel>
<apex:inputField value="{!atm.UserId}"/>
Thanks,
Bujji
if yes then use '__C' because it is custom filed.
like
Thanks,
Bujji.