Skip to main content
Hi,

Is it possible to display the account detail of two different objects on the same page, but in different tabs?

Something like 

<apex:tab label="Main" name="main" id="tabMain">

<apex:detail relatedList="false" title="true"/>

</apex:tab>

<apex:tab label="Contacts" name="Contacts" id="tabContact">

<apex:detail id="{Account.Contact.Id}"/>

</apex:tab>

Thanks,
2 answers
  1. Feb 2, 2015, 10:44 PM
    Mathew,

    I've never done it but I don't see why you can't do it, you can display whatever you want in the VF page.  It looks like you'd just need to wrap those apex:tab elements within a apex:tabPanel element.

    You'd likely need a custom apex controller though to be able to get the appropriate sets of data for each tab.
0/9000