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
KRamaKRama 

is not a valid child relationship name for entity

Hi,

 I am trying to create a tabbed view of customer objects and am following the method provided in the Visualforce PDF file. When referencing a child object I am getting the following error

'Job_Application__r' is not a valid child relationship name for entity Position

 Position is a custom object and Job Application is a custom object that is related to it. It is also made visible in the page layout area. What needs to be done to avoid this error. I am not able to get this done for any of the customer objects. Sample of the line is

<apex:relatedList subject="{!Position__c.id}" list="Job_Application__r" />

Please do let me know how to reference a custom object.

 

I used Apex Explorer and Sforce Explorer. I was not able to find one of my Custom Object in them. But when I check in the setup>Create>Objects I find it listed there. What could be the reason for that?

 

Thanks

KD

uppalauppala

me also facing the same problem, you got any solution for this


thanks

Suresh 

KRamaKRama

Hi Suresh,

The problem is with the custom object name used and the related objects name. Please install the APEX Explorer and it will provide you with the appropriate names that needs to be used. Also please ensure that in page layout area it is availble in the related list.

Thanks

KD