You need to sign in to do that
Don't have an account?
uHaveOptions
Visualforce Custom Tabs inside records objects instead of APEX: Detail how do you put them in sections
Hello Team,
I have a custom object with tabs created inside the record as section separators. If I put APEX;Detail it shows ALL the section of the record. What code should I use to just show them by section so I can show them by each tab.
My APEX Code Below.
<apex:page standardController="Property__c" showHeader="true" sidebar="false">
<!-- Define Tab panel .css styles -->
<style>
.activeTab {background-color: #081f3f; color:white; background-image:none}
.inactiveTab { background-color: lightgrey; color:black; background-image:none}
</style>
<!-- Create Tab panel -->
<apex:tabPanel switchType="client" selectedTab="Property__c" id="AccountTabPanel"
tabClass="activeTab" inactiveTabClass="inactiveTab">
<apex:tab label="Property Information" name="name1" id="tabOne">content for tab one</apex:tab>
<apex:detail subject="{!Property__c.ownerId}" relatedList="false" title="false"/>
<apex:tab label="Building Information" name="name2" id="tabTwo">content for tab two</apex:tab>
<apex:tab label="Financial Information" name="name3" id="tabThree">content for tab two</apex:tab>
<apex:tab label="Loan Information" name="name4" id="tabFour">content for tab two</apex:tab>
</apex:tabPanel>
</apex:page>
Thanks nin advance
I have a custom object with tabs created inside the record as section separators. If I put APEX;Detail it shows ALL the section of the record. What code should I use to just show them by section so I can show them by each tab.
My APEX Code Below.
<apex:page standardController="Property__c" showHeader="true" sidebar="false">
<!-- Define Tab panel .css styles -->
<style>
.activeTab {background-color: #081f3f; color:white; background-image:none}
.inactiveTab { background-color: lightgrey; color:black; background-image:none}
</style>
<!-- Create Tab panel -->
<apex:tabPanel switchType="client" selectedTab="Property__c" id="AccountTabPanel"
tabClass="activeTab" inactiveTabClass="inactiveTab">
<apex:tab label="Property Information" name="name1" id="tabOne">content for tab one</apex:tab>
<apex:detail subject="{!Property__c.ownerId}" relatedList="false" title="false"/>
<apex:tab label="Building Information" name="name2" id="tabTwo">content for tab two</apex:tab>
<apex:tab label="Financial Information" name="name3" id="tabThree">content for tab two</apex:tab>
<apex:tab label="Loan Information" name="name4" id="tabFour">content for tab two</apex:tab>
</apex:tabPanel>
</apex:page>
Thanks nin advance
To do that, you will have to use individual fields inside each <apex:tab>, <apex:details> can be use to separate sections.
let me know if this helps!