+ Start a Discussion
Srinath R 9Srinath R 9 

Tree View in Salesforce to show records hierarchy

Hi,

I have a custom object to store Milestones and Tasks for a Project Management application which I am building in Salesforce. The Mielstone and Tasks are distinguishable in the custom object using a different record type.

Since Tasks are child of milestones , I need to display my complete project hierarchy using a tree view. I am able to bring in the data however I am facing issues with aligning the column width if I go deeper in the tree view. I want to show 4 columns. Can someone please guide me how to show the tree view keeping the column width fixed?

I tried using nested table but the view becomes clumsy with indendation of the column header as well.

What I want to achieve is something like the one given below

Name                                  Duration                           Assigned to
Milestone 1
        Task 1                         10                                    ABC
        Task 2                         20                                    XYZ
        Milestone 2             
                  Task 1 M2          10                                    DEF
Srinath R 9Srinath R 9
Hi,

Thanks for your response. I did check the links posted in https://developer.salesforce.com/forums/?id=906F0000000AVvzIAG and the functionality which I am trying to achieve is very much similar to the screenshot posted in http://3.bp.blogspot.com/-ghLEkq1kvsw/UtgetETzfqI/AAAAAAAABQg/53G0t0eKMNs/s1600/Account+Hierarchy+Screen+1.jpg

However I do not find the source code for this.

*forcecapitalinfo *website is down.
*forschool *shows only the name column. The challenge I am facing is with
the column alignment when displaying multiple columns as I go deep in the
tree.
*salesforcewithfunforce *shows data in nested table i do not want this
either.
*teachmesalesforce *shows only role name
*infallibletechie *seperates columns by || I want to show the same
information like a single table so that the column information is more
readable.

Please help.
Laxman Vattam 26Laxman Vattam 26
were you able to achieve any solution finally? If so,can you the solution
Srinath R 9Srinath R 9
Yes we did find a solution please refer to the link below

http://ratanpaul.github.io/sObjectHierarchy/