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
cjencjen 

VF list of Contacts on child object of Accounts

Hi, 
We have an Account child object call Client Fact Sheet. What I would like to do is list all Contacts related to the Account and show that list on the Client Fact Sheet page layout. I thought this can be done with a Visualforce page displayed on the layout. Can someone outline what should be done to achieve this? Thanks!
David ZhuDavid Zhu
You can use Client Fact Sheet Controller Extension.
Basically, in the controller, get all related contacts in a list; in VF, list all contacts in repeating components, ie. apex:datatable, apex:repeat; finally, put VF on the layout.
Swayam@SalesforceGuySwayam@SalesforceGuy
Hi, 

You can use VF and <apex:relatedList />  and Use that vf as component in Page Layout.

--
Regards,
Swayam
@Salesforceguy