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
Spandy cSpandy c 

Display related contacts in same VF page

I want to display the account and related contacts in the same visual force page. Need to display the account names in first page block and If we click on the command link called contacts that has to display the contacts related to that particular account in another pageblock.

Name           Phone              Industry     Actions 
Account1    123-456-789      Retail        Contacts || New Contact || Edit
Account2    234-456-780      Auto          Contacts || New Contact || Edit
Alain CabonAlain Cabon
Hi,

 Displaying the account and related contacts in the same visual force page.

Usual question:  https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XiDPQA0

Two small examples of code (minimalistic solution which works). I have just added some jQuery code.

Best regards

Alain