Posted By

Xhitman on 08/19/10


Tagged

salesforce Visualforce


Versions (?)

Tabbed Accounts in VisualForce


 / Published in: Other
 

URL: http://wiki.developerforce.com/index.php/Tabbed_Accounts_in_30_seconds

  1. <apex:page standardController="Account" showHeader="true" tabStyle="account" >
  2. <style>
  3. .activeTab {background-color: #236FBD; color:white; background-image:none}
  4. .inactiveTab { background-color: lightgrey; color:black; background-image:none}
  5. </style>
  6. <apex:tabPanel switchType="client" selectedTab=" tabdetails" id="AccountTabPanel" tabClass='activeTab' inactiveTabClass='inactiveTab'>
  7. <apex:tab label="Details" name="AccDetails" id="tabdetails">
  8. <apex:detail relatedList="false" title="true"/>
  9. </apex:tab>
  10. <apex:tab label="Contacts" name="Contacts" id="tabContact">
  11. <apex:relatedList subject="{!account}" list="contacts" />
  12. </apex:tab>
  13. <apex:tab label="Opportunities" name="Opportunities" id="tabOpp">
  14. <apex:relatedList subject="{!account}" list="opportunities" />
  15. </apex:tab>
  16. <apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct">
  17. <apex:relatedList subject="{!account}" list="OpenActivities" />
  18. </apex:tab>
  19. <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt">
  20. <apex:relatedList subject="{!account}" list="NotesAndAttachments" />
  21. </apex:tab>
  22. </apex:tabPanel>
  23. </apex:page>

Report this snippet  

You need to login to post a comment.