+ Start a Discussion
krish99krish99 

records Hyperlink

HI,

 

        I am reterving all the records from product object into a visualforce page and displaying it as in table format.

 

      In that table product names is there i need hyperlink for that product names how can i get this, when i click on that product name it should be display a mini visualforce page in that visualforce page how can i achieve this.

Arun KArun K
1)
 
Use anchor tag like this 
 
<apex:column headerValue="Name"  >
<a href="/{!doc.acc.Id}"
id="{!doc.acc.Id}"

onblur="LookupHoverDetail.getHover('{!doc.acc.Id}').hide();"
onfocus="LookupHoverDetail.getHover('{!doc.acc.Id}', '/{!doc.acc.Id}/m?retURL=%2F{!doc.acc.Id}&isAjaxRequest=1').show();"
onmouseout="LookupHoverDetail.getHover('{!doc.acc.Id}').hide();"
onmouseover="LookupHoverDetail.getHover('{!doc.acc.Id}', '/{!doc.acc.Id}/m?retURL=%2F{!doc.acc.Id}&isAjaxRequest=1').show();">
{!doc.acc.name}
</a>
</apex:column>
 
2)
Add fields in mini-pagelayout. These attributes will be shown as popup card
 
and see in the visualforce page
 
Thanks
Arun K

 

krish99krish99

@kada

 

  thanks for giving reply 
but when i update in my code it is not working  so could you please give me a sample code based upon the product object

 

and i need a hyper link for product names.