You need to sign in to do that
Don't have an account?
Emma Diaz 12
VF to show Parent List on Child
I have a custom object US_Resource_Request__c that has a Master Detail relationship to the Opportunity. I would like to show the Products related list on the US_Resource_Request__c.
I have tried
<apex:page standardController="US_Resource_Request__c">
<apex:relatedList list="Product2" subject="{US_Resource_Request__c.Opportunityid}"/>
</apex:page>
And am getting the following error "Error: Formula expression is required for attribute subject in <apex:relatedList> in Products_related_list at line 2 column 85"
I have tried
<apex:page standardController="US_Resource_Request__c">
<apex:relatedList list="Product2" subject="{US_Resource_Request__c.Opportunityid}"/>
</apex:page>
And am getting the following error "Error: Formula expression is required for attribute subject in <apex:relatedList> in Products_related_list at line 2 column 85"
All Answers
or
Note - Mark this as best answer if it solves your issue.
And more over related list means the childs of that particular object not the parents object related list.
Thanks,
Pramodh.
Hi Deepak,
So I tweaked the code you gave me a litte
<apex:page standardController="US_Resource_Request__c">
<apex:relatedList list="OpportunityLineItem" subject="{!US_Resource_Request__c.OpportunityID__c}"/>
</apex:page>
and am receiving an error that OpportunityLineItem isn't a child object of the Opportunity.
Any thoughts?
Thanks!
Emma