You need to sign in to do that
Don't have an account?
Ian 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?
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?
<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.