You need to sign in to do that
Don't have an account?
Allen Moy
Unable to get Related List
I have two custom tables Produce_Order__c is a parent to Produce_Order_Item__c.
If I put in the <apex:detail /> component. I see the related list for the child records. If I put in <apex:relatedList > I get a Visualforce Error that it is not a valid child relationship name for entity Produce Order. I have tried a dozen different options for <apex:relatedList list="Child LIst" > with always the same error.
Here is a snippet of my code.
<apex:page standardController="Produce_Order__c" sidebar="false" >
<apex:sectionHeader title="{!Produce_Order__c.Name} - {!Produce_Order__c.Pickup_Date__c}" subtitle="{!Produce_Order__c.Pickup_Site__r.Name}" />
<apex:pageBlock title="{!Produce_Order__c.Farmers_Market_Producer__r.Name}" >
<apex:pageblockSection columns="1">
<apex:relatedList list="Produce Order Items"/ >
</apex:pageblockSection>
</apex:pageBlock>
</apex:page>
Thanks!
If I put in the <apex:detail /> component. I see the related list for the child records. If I put in <apex:relatedList > I get a Visualforce Error that it is not a valid child relationship name for entity Produce Order. I have tried a dozen different options for <apex:relatedList list="Child LIst" > with always the same error.
Here is a snippet of my code.
<apex:page standardController="Produce_Order__c" sidebar="false" >
<apex:sectionHeader title="{!Produce_Order__c.Name} - {!Produce_Order__c.Pickup_Date__c}" subtitle="{!Produce_Order__c.Pickup_Site__r.Name}" />
<apex:pageBlock title="{!Produce_Order__c.Farmers_Market_Producer__r.Name}" >
<apex:pageblockSection columns="1">
<apex:relatedList list="Produce Order Items"/ >
</apex:pageblockSection>
</apex:pageBlock>
</apex:page>
Thanks!
So the Child Relationship name is TestObjs__r in following case
All Answers
https://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_custom_mapping.htm
So the Child Relationship name is TestObjs__r in following case