function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dwwrightdwwright 

Displaying Related Lists for Custom Objects

I'm having trouble displaying the related list for the child object in a master-detail relationship. On the standard WYSIWYG page layout, I can add the related list for the child object just fine. On a visualforce page (with the parent object as the standard controller) when I try to use:

<apex:page standardController="Quality_Document__c" >

<.... some code here ..... >

<apex:relatedList list="S180__c" />

 I get the error message:

 

'S180__c' is not a valid child relationship name for entity Quality Document

 

Help?

Rajesh ShahRajesh Shah
Is this a valid Child Relationship name? Child relationship name are not the same as the field API name. For e.g., the child relationship name of Contact to Account is Contacts. You can find out the child relationship throught Eclipse Schema or by going to the detail of the field which defines the relationship between the 2 objects.