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
Geert AdamsGeert Adams 

Hover to display mini page layout or custom related list

hello,
I've built a VF page that displays a pageblock table of Orderitems. I've also created a custom object that has a lookup to the Orderitem record. What I would like to do is in my pageblock table create a hyper link that when you hover over it it displays the related list summary of that custom object or at least a detail of the orderitem (don't want users to click too much to see the details). I think I have the right code for my VF page which is

<a href="/{!a.Order.account.Id}" id="{!a.Order.account.Id}" onmouseover="LookupHoverDetail.getHover('{!a.Id}', '/{!a.Id}/m?retURL=%2F{!a.Id}&isAjaxRequest=1').show();"
    onblur="LookupHoverDetail.getHover('{!a.Id}').hide();"
    onfocus="LookupHoverDetail.getHover('{!a.Id}', '/{!a.Id}/m?retURL=%2F{!a.Id}&isAjaxRequest=1').show();"
    onmouseout="LookupHoverDetail.getHover('{!a.Id}').hide();"><apex:image url="{!a.Line_Status__c}"/></a>

in my controller a.Id refers to the Id of the Orderitem. When I click on it it brings me nicely to that Orderitem page but the hover always displays that the url is not correct.

What am I doing wrong? can anyone help me?

thanks,
G
Geert AdamsGeert Adams
hi all,
there was a mistake in my previous posting for the code. Here's the correct one. It doesn't work however :-(. Anyone can help me?

<a href="/{!a.Id}" id="{!a.Id}" onmouseover="LookupHoverDetail.getHover('{!a.Id}', '/{!a.Id}/m?retURL=%2F{!a.Id}&isAjaxRequest=1').show();"
    onblur="LookupHoverDetail.getHover('{!a.Id}').hide();"
    onfocus="LookupHoverDetail.getHover('{!a.Id}', '/{!a.Id}/m?retURL=%2F{!a.Id}&isAjaxRequest=1').show();"
    onmouseout="LookupHoverDetail.getHover('{!a.Id}').hide();"><apex:image url="{!a.Line_Status__c}"/></a>