You need to sign in to do that
Don't have an account?
Suraj Maharjan 3
Display Related list on a visualforce page from managed package objects
I have two custom objects both form managed packages.
I would like to create a visual force page using these objects where A is the master of object B.
All I want to do is display related list. How do I achieve that in a visualforce page.
I have tried using
<apex:page standardController="MyMasterObject__c">
<apex:relatedList list="MyChildObjects__r" />
</apex:page>
I would like to create a visual force page using these objects where A is the master of object B.
All I want to do is display related list. How do I achieve that in a visualforce page.
I have tried using
<apex:page standardController="MyMasterObject__c">
<apex:relatedList list="MyChildObjects__r" />
</apex:page>
I had to go to workbench and find the actual child relationship name
All Answers
Are you able to access it on record detail page if yes then your above code is correct Only you have to do something in the URL?
For this page to display the related list data, the ID of a valid custom object record with a custom relationship must be specified as a query parameter in the URL for the page, for example, http://na3.salesforce.com/myCustomRelatedList?id=a00x00000003ij0.
for your knowledge, you can refer this link
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_custom_mapping.htm
Thanks
Lokesh
Note: Both custom objects A and B are from managed package.
I had to go to workbench and find the actual child relationship name