You need to sign in to do that
Don't have an account?
lookup "spyglass" in VF
Hi,
I'm trying to include a lookup on a VF page. I tried the solution described here http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=5752&query.id=210458#M5752 and here http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=14403&query.id=210458#M14403
Here's the code
<apex:page standardcontroller="Account" tabStyle="Com_Splits__c" extensions="PartnerSplitExtension">
<apex:form id="myform">
<apex:inputText value="{!PartnerAccount.Name}" />
...
public with sharing class PartnerSplitExtension {
public Account getPartnerAccount(){
return [select name from account limit 1];
}
... Constructor and stuff
The result is an input text box populated with the first account found in the query.
What am I doing wrong?
Many thanks in advance.
Have you tried:
<apex:inputField value="{!Account.PartnerAccountId}"/>