kingyiren / flex-object-handles

Automatically exported from code.google.com/p/flex-object-handles
0 stars 0 forks source link

help me ro create daynamic a tree #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 9
  list = (mx.collections::ArrayList)#1
    length = 9
    source = (Array)#2
      [0] (Object)#3
        category_id = "8"
        is_active = "1"
        level = "3"
        name = "Cell Phones"
        parent_id = 13
        position = "8"
      [1] (Object)#4
        category_id = "12"
        is_active = "1"
        level = "3"
        name = "Cameras"
        parent_id = 13
        position = "12"
      [2] (Object)#5
        category_id = "15"
        is_active = "1"
        level = "3"
        name = "Computers"
        parent_id = 13
        position = "15"
      [3] (Object)#6
        category_id = "29"
        is_active = "1"
        level = "4"
        name = "Hard Drives"
        parent_id = 15
        position = "3"
      [4] (Object)#7
        category_id = "30"
        is_active = "1"
        level = "4"
        name = "Monitors"
        parent_id = 15
        position = "4"
      [5] (Object)#8
        category_id = "31"
        is_active = "1"
        level = "4"
        name = "RAM / Memory"
        parent_id = 15
        position = "5"
      [6] (Object)#9
        category_id = "32"
        is_active = "1"
        level = "4"
        name = "Cases"
        parent_id = 15
        position = "6"
      [7] (Object)#10
        category_id = "33"
        is_active = "1"
        level = "4"
        name = "Processors"
        parent_id = 15
        position = "7"
      [8] (Object)#11
        category_id = "34"
        is_active = "1"
        level = "4"
        name = "Peripherals"
       parent = 15
        position = "8"
    uid = "CE6F58A1-8B04-CD43-282A-1F43239D9E56"
  sort = (null)
  source = (Array)#2

this array collection convert daynamicaly to this type of array collection 

condition is 

parent category level == 3 

child category is level==4 && parent_id == category_id  

 var tmp:ArrayCollection=new ArrayCollection;
              tmp.addItem({
                    Name:'ACCOUNTING', Key:10, isBranch:true, children:[
                        {Name:'WARD', ShowKey:7521, draggable:true, parentKey: 10},
                        {Name:'JONES', ShowKey:7566, draggable:true, parentKey: 10},
                        {Name:'SCOTT', ShowKey:7788, draggable:true, parentKey: 10},
                        {Name:'KING', ShowKey:7839, draggable:true, parentKey: 10},
                        {Name:'JAMES', ShowKey:7900, draggable:true, parentKey: 10}
                    ]
                });

Original issue reported on code.google.com by abidr...@gmail.com on 23 Nov 2009 at 4:35

GoogleCodeExporter commented 8 years ago
I don't see how this is ObjectHandles related.

Original comment by marc.hug...@gmail.com on 22 Dec 2009 at 3:36