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
Dominic Sebastian 7Dominic Sebastian 7 

Mouse Over for Activity History

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.
User-added image
 
Pramodh KumarPramodh Kumar
HI Dominic Sebastian,

could you please share these javascript function LookupHoverDetail.getHover