You need to sign in to do that
Don't have an account?

Tabbed Accounts/ Related Lists
I'm trying to tab out our account layout. I'm unable to create a tab for some related lists that are standard objects (Partners, Content Deliveries, Activity History, etc) The custom objects were no problem, but for these and a few other standard objects I receive the "not a valid child relationship error"
here is the code I'm using - taken from the infamous tabbed accounts in 30 seconds wiki
<apex:tabPanel switchType="client" selectedTab=" tabdetails" id="AccountTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab"> <apex:tab label="Contacts" name="Contacts" id="tabContact"> <apex:relatedList subject="{!account}" list="contacts" /> </apex:tab> <apex:tab label="Opportunities" name="Opportunities" id="tabOpp"> <apex:relatedList subject="{!account}" list="opportunities" /> </apex:tab> <apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct"> <apex:relatedList subject="{!account}" list="OpenActivities" /> </apex:tab> <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt"> <apex:relatedList subject="{!account}" list="NotesAndAttachments" /> </apex:tab> <apex:tab label="Activity History" name="Activity History" id="tabActivityHistory"> <apex:relatedList subject="{!account}" list="ActivityHistory" /> </apex:tab>
I've searched through the boards here and was unable to locate an answer for standard objects only custom.
Any help would be appreciated.
Thanks,
I think there may be an issue with they "relationship name" that you have specified. I would suggest you go into the defintion and make sure that you are specifing the exact "Child Relationship Name".
I suggest use the schema explorer of Ecllipse to find out the exact relationship name- I think the relationship name for "Activity History" is "Activity Histories".
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Is there a way to find the correct name without Schema Explorer?
I have no idea what that is.
Here is the Custom Tabs I built out. I have Partners as a separate tab but I stacked the Activities all under one tab so you have the Open Activities on top of the Activity history. I don't know about Content Deliveries.