Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Is there anyway to show relatedlist for a link in pageblocktable. I have account object and its related object called employee(M-D). I have cost field in employee object and I rolled up the cost field to account object. Now i have a pageblocktable where I am showing the rollup field of account.

I want to show related list (its distribution) when I hover that Field. Any Ideas.!

share|improve this question
    
I would get all related data in the controller and map it with the account id (Map <Id, List <Employee__c>>), pass it to the page and use some custom tooltip javascript library to display the data I want. –  Bachovski Feb 15 '13 at 8:17
    
@e-bacho2.0 That seems valid enough to be included as an answer. I would love to give you an upvote for it, can you please include it as an answer? –  Jesse Altman Feb 15 '13 at 13:57
add comment

2 Answers 2

You can do something like this:

<apex:repeat value="{!employeeMap}" var="accId" >
     <apex:repeat value="{!employeeMap[accId]}" var="employee" >
        <apex:outputText value="{!employee.Name}"/><br/>
    </apex:repeat>
</apex:repeat>
share|improve this answer
add comment

Get all related data in the controller and map it with the account id Map <Id, List <Employee__c>>, pass it to the page and use some custom tooltip javascript library to display the desired info.

A good old, cross-browser, lightweight tooltip library that I'm using often (official website is down), I've just uploaded it HERE.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.