+ Start a Discussion

how can we do lookups as in salesforce using apex with visualforce



I want to do the lookups as in sales force using visual force with apex.If any one knows plz send me the example that will be helpful to me.


Thanks in advance,






Hello ssss;

What do you mean by "I want to do the lookups" ?.

Do you want a way to browse for the lookup field. If so you can do it as in the below example. If your problem is another, could you please clarify further..?



<apex:page standardController="Opportunity">


<apex:inputfield value="{!opportunity.accountId}"/>