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
mahe_developermahe_developer 

Opportunities related date should appear in Opportunity page

Hi Friends,

 

              I have opportunity ,Salesorder, Projects and Milestones Objects,For opportunity salesorder is detail list, for sales order project is detail list and for projects milestone is detail list, so suppose if i created all records for opportunity, when i click on opportunity name from all objects related lists should apper in opportunity  page as detail lists.Is it possible?

 

 

Thansk

Mahesh.......

 

ministe2003ministe2003

Not directly, but you could do it with apex.  Make a page block section and render a pageblocktable where the value points to a method in your class which returns a list of the related records.

 

For example, make a pageblocksection in your opportunity which contains a blackblocktable where the value points to, say, {!getProjects()} and in your class have a Projects() method which returns a list of projects, which you get by querying for projects where it's sales_order_r.opportunity relationship matches the opportunity you're in