• Noorul Absar
  • NEWBIE
  • 10 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I am testing visual force page for child object and getting error 'I am using correct related list name'

<apex:page sidebar="false" showHeader="false" standardController="ComTestParent__c">
    <apex:pageBlock >  
        <apex:pageBlockSection title="General Info" columns="1">
        </apex:pageBlockSection>
    </apex:pageBlock>  

    <apex:pageBlock >
        <apex:pageBlockSection title="Child Info">
               <apex:relatedList list="ComTestChilds" />
        </apex:pageBlockSection>    
    </apex:pageBlock>
</apex:page>
<apex:page sidebar="false" showHeader="false" standardController="Account">
    <apex:pageBlock title="Registration">
    <apex:pageBlockSection title="Related Info" columns="1">
        <apex:outputField value="{!Account.Name}"/> 
    </apex:pageBlockSection> 
    <apex:pageBlockSection title="Related Info" columns="1">
        <apex:relatedList list="Cases"/>
    </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>
I am testing visual force page for child object and getting error 'I am using correct related list name'

<apex:page sidebar="false" showHeader="false" standardController="ComTestParent__c">
    <apex:pageBlock >  
        <apex:pageBlockSection title="General Info" columns="1">
        </apex:pageBlockSection>
    </apex:pageBlock>  

    <apex:pageBlock >
        <apex:pageBlockSection title="Child Info">
               <apex:relatedList list="ComTestChilds" />
        </apex:pageBlockSection>    
    </apex:pageBlock>
</apex:page>