You need to sign in to do that
Don't have an account?
Manpreet Singh 13
sobject error
Hello All,
I have written below mentioned code and I am getting "Error: Invalid field Testing__r for SObject Case".
Please note, 'Testing' is a custom object and is related list of Case object
<apex:pageBlockSection id="Testing" columns="1" title="Testing" collapsible="true">
<apex:pageBlockTable value="{!Case.Testing__r}" var="item">
<apex:column value="{!item.Name__c}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
I have written below mentioned code and I am getting "Error: Invalid field Testing__r for SObject Case".
Please note, 'Testing' is a custom object and is related list of Case object
<apex:pageBlockSection id="Testing" columns="1" title="Testing" collapsible="true">
<apex:pageBlockTable value="{!Case.Testing__r}" var="item">
<apex:column value="{!item.Name__c}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
Check the relationship name, I believe it might be Testings__r.
All Answers
!Case.<Child Relationship Name>
Check the relationship name, I believe it might be Testings__r.
<apex:pageBlockSection id="Testing" columns="1" title="Testings" collapsible="true">
<apex:pageBlockTable value="{!Case.Testings__r}" var="item">
<apex:column value="{!item.Name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
If none of the answers helped you significantly, please post the solution. You may also mark your solution as the best answer.