Skip to main content
I had created the following code but it seems to not work for the Hover

 

<apex:page standardController="Account" extensions="HoverActivityHistory1">

<apex:pageBlock title="Activity History List">

<apex:pageBlockTable value="{!Taskvalues}" var="acc">

<apex:column headerValue="{!$ObjectType.Task.Fields.Subject.Label}">

<a href="/{!acc.id}"

id="lookup{!acc.id}opp4"

onblur="LookupHoverDetail.getHover('lookup{!acc.id}opp4').hide();"

onfocus="LookupHoverDetail.getHover('lookup{!acc.id}opp4', '/{!acc.id}/m?retURL=/{!acc.id}&isAjaxRequest=1').show();"

onmouseout="LookupHoverDetail.getHover('lookup{!acc.id}opp4').hide();"

onmouseover="LookupHoverDetail.getHover('lookup{!acc.id}opp4', '/{!acc.id}/m?retURL=/{!acc.id}&isAjaxRequest=1').show();">

{!acc.Subject}

</a>

</apex:column>

<apex:column headerValue="{!$ObjectType.Task.Fields.Description.Label}" value="{!acc.Description}" />

</apex:pageBlockTable>

</apex:pageBlock>

</apex:page>

And the Apex Class

 

public class HoverActivityHistory1{

public static List<Account> accounts;

public static List<Task> acc;

public HoverActivityHistory1(ApexPages.StandardController controller) {

acc = [select Id, WhatId, Subject, Description from Task where WhatId =: ApexPages.currentPage().getParameters().get('id') ];

}

public static List<Task> getTaskvalues(){

return acc;

}

}

I get the output as follows.

Mouse Over for Activity History

 
1 个回答
  1. 2015年10月19日 18:36
    HI Dominic Sebastian,

    could you please share these javascript function LookupHoverDetail.getHover
0/9000