1 Reply Latest reply on Jan 28, 2008 1:26 AM by Sreenivas R

    Flat data to hierarchical data ?

    CRresolving
      Hi,

      i would like convert a flat arraycollection to a hirarchical one.

      The flat data look like this one :

      a= []
      a[0].id = 0;
      a[0].parentid= 0;
      a[0].label = 'root';
      a[1].id = 1;
      a[1].parentid= 0;
      a[1].label = 'SECOND';
      a[2].id = 3;
      a[2].parentid= 1;
      a[2].label = 'SECOND.FIRST';
      a[4].id = 4;
      a[4].parentid= 1;
      a[4].label = 'SECOND.SECOND';
      a[5].id = 5;
      a[5].parentid= 4;
      a[5].label = 'SECOND.SECOND.FIRST';

      Any idea ?

      i treed using grouping => not working to arrange data into hierarchy, and hierachydata show all at the same level.

      Thanks you for your help

      CR