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
InfhydInfhyd 

Creating a Hierarchical/tree structure in Visual force.

The Structure to be developed looks like this.... 

 

-hierarchyhierarchy6 Amex4

  - 5 New Cost Centre1

    - 4 New Cost Centre2

    |  - 3 New Cost Centre 3

    |  |  - 2 New Cost Centre 4

    |  |  |  |-1 New Cost Centre5

    |  |  |  |- 0 New Cost Centre 6

    |  |  |

    |  | + 2 New Cost Centre 7

    |  - 2 New Cost Centre 10

    |    |- 1 New Cost Centre 11

    |    |- 1 New Cost Centre 12

    - 2 New Cost Centre 13

      |- 1 New Cost Centre14

 

 

Could some one suggest a solution how to get this kind of tree-structure in VF ??

AffinaquestAffinaquest

You mght want to take a look at this free app on the app exchange:  http://sites.force.com/appexchange/listingDetail?listingId=a0N300000016chCEAQ written by salesforce.  All the source code is included.

 

It displays an account hierarchy, but the technique could be modified to show other types of hierarchies as well.

 

JR

InfhydInfhyd

Thank you :smileyvery-happy:

will check this out.