+ Start a Discussion
mac adminmac admin 

Related list in custom vfpage

Hi all,
I want to create a custom detail page for my custom object. Can anyone help me in adding related list to my detail custom vfpage.

Thanks in advance,
regrads,
mac.
yogesh_sharmayogesh_sharma

Hi Mac,

You can add related list in to your custom visualforce page. Follow below example:

<apex:page standardController="Audit_Trail__c">
<apex:relatedList list="Client__r" />
</apex:page>


I hope it helps you to add related list. Please mark this answer best if it helps you.

Thanks,

Yogesh Sharma

mac adminmac admin
Hi  Yogesh,
Thanks for reply. It's worked.