+ Start a Discussion
Rajesh Cool DevRajesh Cool Dev 

Display tree structure of custom objects in vf page

Hello,

Can anybody help/suggest/provide solution on the below requirement,

I have 7 custom objects, Object1 is the Parent Object of all other 6 objects and each object has a lookup relation to its parent object (i.e. Object1 has a child Object2 , Object2 has a child Object3 and Object3 has a child Object4 so on...).

I want to display these custom objects in tree view in a VF page and is it possible to write SOQL query for 7 levels deeper to fetch the records of each object and display the related records under each object in the same tree view.

 Object1
       |
      Object2
             |
          Object3
                 |
               Object4
                     |
                    Object5
                         |
                       Object6
                            |
                           Object7

Any help highly appreciated.

Thanks in Advance.
ChandrakanthChandrakanth
@rajesh were you able to achieve. I am looking for same and couldn't figure a way out. please suggest if you have found any answers