You need to sign in to do that
Don't have an account?
KSTNE
Need help with apex tabs
Hi,
We are adding tabs to our Account, Contact, Lead and Opportunities pages. We have already added custom pages and used the Apex code to create the tabs.
However, the problem we are having is when we are trying to add "Activity History", "Open Activities" or any other objects to our custom tabbed page.
The error we get looks like this,
'activityhistory' is not a valid child relationship name for entity Lead
Here is the code that we use to create tabs and add "Activity History",
<apex:tab label="Lead Detail" name="LeadDetails" id="tabdetails" styleclass="AcctListStyle"> <apex:detail relatedList="false" title="true"/> <apex:relatedList subject="{!lead}" list="activityhistory" /> </apex:tab>
If you could please post a step by step process on how to get this resolved, thanks in advance!
Did you try this name for the related list: 'ActivityHistories'?
Best practice is to look up the relationship name using the schema browsers such as in Eclipse IDE as they often are not what you see in the UI
All Answers
Did you try this name for the related list: 'ActivityHistories'?
Best practice is to look up the relationship name using the schema browsers such as in Eclipse IDE as they often are not what you see in the UI
Hi,
Please Use the below code
<apex:relatedList list="OpenActivities"/>
<apex:relatedList list="ActivityHistories"/>
Thanks,
Sai
Thanks to both of you, both answers did the trick!