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

relatedList problem
I'm having a problem displaying some related lists using the apex:relatedList tag.
For example, displaying the Activity History related list for a Case works fine:
But trying to display the related list for Case Comments does not - I get the error
This happens with other related lists for Case as well like Case History, Solutions, Case Contact Roles
Is this a bug or am I doing something wrong? I know I can build a section that emulates the related list but it doesn't have built-in support for paging AFAIK.
Message Edited by james2000 on 05-14-2008 04:38 PM
For example, displaying the Activity History related list for a Case works fine:
Code:
<apex:page standardController="Case"> <apex:relatedList list="ActivityHistories" subject="{!case}"/> </apex:page>
But trying to display the related list for Case Comments does not - I get the error
'CaseComments' is not a valid child relationship name for entity Case
Code:
<apex:page standardController="Case"> <apex:relatedList list="CaseComments" subject="{!case}"/> </apex:page>
This happens with other related lists for Case as well like Case History, Solutions, Case Contact Roles
Is this a bug or am I doing something wrong? I know I can build a section that emulates the related list but it doesn't have built-in support for paging AFAIK.
Message Edited by james2000 on 05-14-2008 04:38 PM
get the name of the related objects from the WSDL
Message Edited by Ron Hess on 05-14-2008 02:55 PM