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
Kamran-RaoKamran-Rao 

Creating a master-detail page in VF with detail as a custom object associated with contract or Opp.

I am new to visualForce and working on a custom object development that will be associated with contract. I am looking for a step-by-step tutorial that can make my Master-Detail concept clear e.g., I want to develop a master-detail page such that my master page will be a grid that will display the contacts in my SF system as a link. When the user will click on any of the link on the same page in detail page block, details of the clicked contact should open.

 

Can someone please refer me to such a tutorial or sample code that can solve my problem?

 

Thanks,

Rao

wesnoltewesnolte

Hey

 

There's something quite similar that would help you get started. First of all created your custom objects and create the master-detail relationship on your child object.

 

Then follow this tut: http://wiki.developerforce.com/index.php/Force.com_Tutorial:_An_Introduction_to_Visualforce

 

At the point where it says:

 

<apex:detail relatedList="false" /> 

 

Change it to

 

 <apex:detail relatedList="true" />

 

You should see your contact info and related information.

 

Cheers,

Wes 

Kamran-RaoKamran-Rao

Thank you very much Wes.

 

Thanks,

Rao