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
mavsmavs 

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
ReidCReidC

If you do this:

 

 

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

 

 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
bob_buzzardbob_buzzard
Do you have permission to change that field on the event?  
mavsmavs

yes i have the permission to that field.

 

And i am using custom controller.

 

Any ideas?

 

Thanks

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