Flat data to hierarchical data ?
hi,
i convert flat arraycollection hirarchical one.
the flat data 1 :
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 arrange data hierarchy, , hierachydata show @ same level.
thanks
cr
i convert flat arraycollection hirarchical one.
the flat data 1 :
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 arrange data hierarchy, , hierachydata show @ same level.
thanks
cr
i have posted sample here xml data. think can used case too.
http://flexpearls.blogspot.com/2007/12/hierarchicaldata-from-flat-xmllist-data.html
http://flexpearls.blogspot.com/2007/12/hierarchicaldata-from-flat-xmllist-data.html
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment