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
Ian GoodineIan Goodine 

Display parent object's related list on a child

I have a parent object called Product with two children: Inspection Record and Criteria (which designated the requirements for the part).  There is a related list on Product containing its associated criteria.  I am trying to display this list on the Inspection Record, based on the lookup inspection record has to Product.  I am currently trying a VF page with the following code:
 
<apex:page standardController="Inspection_Record__c">         <apex:relatedList subject=     {!Inspection_Record__c.Related_Product__c}" list="Criterias" /> </apex:page>

The error upon viewing the record is "Content cannot be displayed: 'Criterias' is not a valid child relationship name for entity Product".

Can anyone correct my code, or offer an alternative solution?
Best Answer chosen by Ian Goodine
Ian GoodineIan Goodine
SOLVED: 
<apex:page standardController="Inspection_Record__c">
<apex:relatedList subject="{!Inspection_Record__c.Related_Product__c}" list="INS_Criterias__r" />
</apex:page>

Where the list contans the Name of the source object of the related list followed by __r.