Reply
Regular Contributor
PressMart
Posts: 59
0

By events want to display contacts

Hi,

I have an issue i.e, in PBtable account object records are there.When i mouseover or mouseout on name  thus related contacts displayed on a pop-up box.

Actually,i get something for Accounts i.e,when i mouseover on account ...Accounts pop-up only displayed.But i need thus related contacts.Can you resolve it.

Code:

<apex:form >  
  <apex:repeat value="{!Accounts}" var="acc">
    <apex:inlineEditSupport event="onclick"/>                            
    <apex:panelGrid columns="1">          
    <ul><li><a href="/{!acc.Id}" id="{!acc.Id}" onblur="LookupHoverDetail.getHover('{!acc.Id}').hide();" onfocus="LookupHoverDetail.getHover('{!acc.Id}', '/{!acc.Id}/m?retURL=%2F{!acc.Id}&isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('{!acc.Id}').hide();" onmouseover="LookupHoverDetail.getHover('{!acc.ID}', '/{!acc.ID}/m?retURL=%2F{!acc.ID}&isAjaxRequest=1').show();">{!acc.Name} </a></li>  </ul>   
    </apex:panelGrid>    
  </apex:repeat>
</apex:form>

 

class:
public list<Account> getAccounts() {
        list<Account> acc=[SELECT Account.Name, (SELECT Contact.Name, Contact.LastName FROM Account.Contacts) FROM Account];
        return acc;
    }