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
kkvikram9kkvikram9 

Displaying 4 levels of Objects data

Hi all,

 
I have a requirement where I have 4 levels of object records to be displayed on visual force page.
 
The visual force page needs to be in a way where on load of page, it displays of list of Account records matching certain criteria.
 
Then onclick of a an + image related to a particular Account I need to display list of related opportunities. (I can query this list of opportunities on selection of a particular Account)
 
When onclick of a particular Opportunity, I need to display list of related Opportunitylineitems
 
And onclick of a particular Opportunitylineitem,I need to display list of childOpportunitylineitems(assuming childOpportunitylineitems is a custom object).
 
The VFpage display will be some thing similar to this.
 
Accounts
               Opportunities
                                      Opportunitylineitems
                                                                         ChildOpportunitylineitems.
 
 
Please share if you have any visual force page and controller classtemplate similar to this.
 
 
Thanks in advance,
 
Vikram
chiranjeevitgchiranjeevitg

check this links

 

techsahre.blogspot.com/2011/03/simple-sf-tree-for-vf-page.html

http://www.forcetree.com/2011/04/tree-view-in-visualforce-page.html

http://forcetreedemos-developer-edition.ap1.force.com/forcetreedemos

 

hope this will help..

sandeep@Salesforcesandeep@Salesforce

You can use HTML table using Apex: repeat and plot same structure using this you will be able to show many other fieldd also along with record name in each row.