+ Start a Discussion

inputfield not displaying lookup

I am grabbing Accountid (relatedto) from event Object.


In my VF page instead of displaying lookup, the actual account name is displayed in reonly format.


Cant we display lookup?


Why is lookup not being displayed?


<apex:inputField value="{!ev.AccountId}" /> Event ev=[Select Accountid,whatid from Event limit 1];


Message Edited by mavs on 03-05-2010 10:51 AM

If you do this:



<apex:page standardController="event">
<apex:inputField value="{!event.whatId}" />


 You get this the screeshot in the attachment.  Is that what you want?  Note that my sample is with an Oppty but could just as easily have been with an account.




Message Edited by ReidC on 03-07-2010 07:13 PM
Do you have permission to change that field on the event?  

yes i have the permission to that field.


And i am using custom controller.


Any ideas?



Message Edited by mavs on 03-08-2010 09:52 AM
Message Edited by mavs on 03-08-2010 12:28 PM
Does anyone have solution for this?