You need to sign in to do that
Don't have an account?
SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object.
While saving the below code:
<apex:pageBlockTable value="{!Quote__c.quote_items__r}" var="line" border="1" headerClass="headerStyle" >
<apex:column headerValue="Product #" value="{!line.product__r.Name}" width="150px;" />
<apex:column breakBefore="true" colspan="8"> <apex:pageBlockTable value="{!line.Product_Items__r}" var="c" border="1" headerClass="headerStyle" >
<apex:column value="{!c.Id}"/>
<apex:column value="{!c.Name}"/>
</apex:pageBlockTable>
</apex:column>
</apex:pageBlockTable>
I got the error:
Error: Object type not accessible. Please check permissions and make sure the object is not in development mode: SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object
<apex:pageBlockTable value="{!Quote__c.quote_items__r}" var="line" border="1" headerClass="headerStyle" >
<apex:column headerValue="Product #" value="{!line.product__r.Name}" width="150px;" />
<apex:column breakBefore="true" colspan="8"> <apex:pageBlockTable value="{!line.Product_Items__r}" var="c" border="1" headerClass="headerStyle" >
<apex:column value="{!c.Id}"/>
<apex:column value="{!c.Name}"/>
</apex:pageBlockTable>
</apex:column>
</apex:pageBlockTable>
I got the error:
Error: Object type not accessible. Please check permissions and make sure the object is not in development mode: SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object
This is the limitation of Salesforce: