I have two object one standard object Leads and one custom object tractor.and tractor is a lookup field in lead object.i am trying to include three input fields and a button for searching a tractor in lead edit page using a button and vf page.
everything is working fine except that,on clicking one particular item in list i need to populate that value in the lookup field on the lead detail page.
i tried some url hacking things like this
<apex:outputLink value="javascript:top.window.opener.lookupPick2('editPage','CF00Nq00000025801_lkid','CF00Nq00000025801','{!a.Id}','{!a.Name}', false)"
rendered="{!NOT(ISNULL(a.Id))}">
{!a.Name}
</apex:outputLink>
but its not working for me.can any one suggest me some idea to achieve this requirement.