You need to sign in to do that
Don't have an account?
Creating a tab or a related list of a custom object
<apex:page standardController="Opportunity"showHeader="true"tabStyle="opportunity">
<apex:tabPanel switchType="client"selectedTab=""id="OpportunityTabPanel"tabClass="activeTab"inactiveTabClass="inactiveTab">
<style>
.activeTab{background-color:#236FBD;color:white;background-image:none}
.inactiveTab{background-color:lightgrey;color:black;background-image:none}
</style>
<apex:tab label="Details"name="OppDetails"id="tabdetails">
<apex:detail relatedList="false"title="true"/>
</apex:tab>
<apex:tab label="Products"name="Products"id="tabOpp">
<apex:relatedList subject="{!opportunity}" list="opportunitylineitems"/>
</apex:tab>
<apex:tab label="Quotes"name="Quotes"id="tabOpenAct">
<apex:relatedList subject="{!opportunity}"list="quotes"/>
</apex:tab>
<apex:tab label="OpenActivities"name="OpenActivities"id="tabOpenAct">
<apex:relatedList subject="{!opportunity}"list="OpenActivities"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
Thanks
You need to specify the "relationship name" as the list=... attribute for a custom relationship. It is probably quotes__r (the default), if you didn't set it to anything different in the custom field definition.