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
LakshmiGenLakshmiGen 

on clicking of lookup icon should show data on 3 fields in visualforce page

Hi,

 

i have a requirement to create one lookuprelation field in my custom object with relate to contact object.So now in my visualforce page when i click on lookup icon it will dispaly the results with 3 columns lets say accounname,accountsite,and phone number.

 

 

Now what all i want is when the user select the record it is saving the firstcolumn in customlookup field that is fine now i also want to show other 2 columns in my custom objectifelds in visualfoce page.

 

 

How to achive this functionality. Kindly help on this

Ashish_SFDCAshish_SFDC
Hi Lakshmi, 


Try the code in the below blog 

http://bobbuzzard.blogspot.in/2010/09/visualforce-lookup.html

and see the discussion in the thread below,

http://salesforce.stackexchange.com/questions/11611/how-do-we-get-a-id-of-field-from-a-apexpageblocktable


Regards,
Ashish