2

I have a visual force page displaying lots of information in a report of sorts. To enchance the user experience I have added some code to load the standard compact layout for records to provide some additional information. This is done with the following code. LookupHoverDetail.getHover is functionality provide by Salesforce.

<a href="#" id="{!rec.Id}"
  onmouseover="LookupHoverDetail.getHover('{!rec.Id}', '/{!rec.Id}/m?retURL=/{!rec.Id}&isAjaxRequest=1').show();"
  onmouseout="LookupHoverDetail.getHover('{!red.Id}').hide();">
    <apex:outputtext value="{!rec.Name}"/>
</a>

However, this only loads the System Default compact layout. It does it quite nicely, but I have a custom compact layout with more relevant information. How can I get that to display?

1
  • Did you manage to use Compact Layout in Visualforce Page ? Commented Nov 29, 2022 at 2:21

1 Answer 1

0

So the code above was actually bringing up a "mini" layout. Not a "compact" payout. Answer is, know your mini-vs-compact layouts.

1
  • And how do you get the Compact layout? Commented Aug 25, 2015 at 16:33

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.