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
Eric Blaxton.ax1862Eric Blaxton.ax1862 

Can I create a related list using visual force?

Hi and thanks for your help...

 

The objective is:

 

Place a related list on the Opportunity Object.  It has to show a related list from a custom object called X.  The problem is opportunity is not related to Object X, but Account is.  Since opportunities are related to Accounts, is there a way to show the parent account information on a  related list?

 

Eric

 

 

Best Answer chosen by Admin (Salesforce Developers) 
sguptasgupta

Create the VF page with stdcontlr as Opportunity, use <apex:relatedList> tag on your VF and assign the list value as list="Account.<your_custom objec_ Child Relationship Name>__r"

All Answers

sguptasgupta

Create the VF page with stdcontlr as Opportunity, use <apex:relatedList> tag on your VF and assign the list value as list="Account.<your_custom objec_ Child Relationship Name>__r"

This was selected as the best answer
Anil SavaliyaAnil Savaliya

Hi

<apex:pages standardcontroller = "contact"  >

all page UI logic

<apex:relatedlist list="custom object like (Participants__r)" />

</apex:page>

 

Please add me solution in kudos,if it's help.

 

Thanks,

Anil