You need to sign in to do that
Don't have an account?
URGENT HELP NEEDED -- " not a valid child relationship name for entity"
I have created a page using the following code. For some reason, I can't get this error message to go away. The Proposal and Line Items have a master-detail relationship as shown below.
Can anyone help me? I desperately need to get this project done, but doesn't help if I can't get display the line items on the proposal page. Thanks!
'Proposal Line Items' is not a valid child relationship name for entity Proposal"
<apex:page StandardController="Proposal__c" tabstyle="Contact">
<apex:form >
<apex:pageBlock title="Proposal Details">
<apex:pageBlockButtons >
<apex:commandButton action="{!edit}" value="Edit"/>
<apex:commandButton action="{!delete}" value="Delete"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="2">
<apex:outputField value="{!Proposal__c.Name}"/>
<apex:outputField value="{!Proposal__c.Opportunity__c}"/>
<apex:outputField value="{!Proposal__c.Scope__c}"/>
<apex:outputField value="{!Proposal__c.Launch_Model__c}"/>
<apex:outputField value="{!Proposal__c.Scope_Scale_of_Implementation__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Site Equivalents">
<apex:panelGrid columns="5" width="800px" cellspacing="10px">
<apex:outputText value="# of Employees" id="EEs"/>
<apex:outputText value="Heavy - 1" id="Heavy"/>
<apex:outputText value="Medium - 2" id="Medium"/>
<apex:outputText value="Light - 3" id="Light"/>
<apex:outputText value="Office - 4" id="Office"/>
<apex:outputText value="< 10" id="lessthan10"/>
<apex:outputField value="{!Proposal__c.Manufacturing__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_10_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_10_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_10_EEs__c}"/>
<apex:outputText value="10 - 49" id="ten49"/>
<apex:outputField value="{!Proposal__c.Mfg_10_50_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_10_50_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_10_49_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_10_50_EEs__c}"/>
<apex:outputText value=" 50 - 149" id="fifty149"/>
<apex:outputField value="{!Proposal__c.Mfg_51_150__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_50_149_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_50_149_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_51_150_EEs__c}"/>
<apex:outputText value=" 150 - 499" id="onefifty499"/>
<apex:outputField value="{!Proposal__c.Mfg_151_500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_150_499_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_150_499_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_151_500_EEs__c}"/>
<apex:outputText value=" 500 - 1500" id="five1500"/>
<apex:outputField value="{!Proposal__c.Mfg_501_1500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_500_1499__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_500_1500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_501_1500_EEs__c}"/>
<apex:outputText value=" > 1500" id="greater"/>
<apex:outputField value="{!Proposal__c.Mfg_1500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Medium_Mfg_1500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Light_Mfg_1500_EEs__c}"/>
<apex:outputField value="{!Proposal__c.Office_1500_EEs__c}"/>
</apex:panelGrid>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:outputField value="{!Proposal__c.Total_of_Sites__c}"/>
<apex:outputField value="{!Proposal__c.Calculated_Site_Equivalents__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
<apex:relatedList subject="{!Proposal__c}" list="Proposal Line Items"/>
</apex:page>
Custom Field Definition Detail |
Field Label | Proposal | Object Name | Line Item |
Field Name | Proposal | Data Type | Master-Detail |
API Name | Proposal__c | ||
Description | |||
Help Text | |||
Related To | Proposal | Child Relationship Name | Proposal_Line_Items |
Related List Label | Proposal Line Items | ||
Sharing Setting | Read/Write. Allows users with at least Read/Write access to the Master record to create, edit, or delete related Detail records. |
replace
By
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
All Answers
replace
By
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
That fixed it!! Thanks! You are awesome.