Hi sushanth,

Thanks to send this code.but i am using ArrayCollection
This is  my code :

for each(var sectionObj:Section in sectionArr){
                    if(sectionObj.subSectionId==0){
                        var sectionName:String    = sectionObj.sectionName;
                        var sectionId:Number     = sectionObj.sectionId;
                        var sectionObject:Object = new Object();
                        sectionObject.sectionName    =
sectionObj.sectionName;
                        sectionObject.sectionId     =
sectionObj.sectionId;
                        for each(var pageObj:Page in pageArr){
                            if(sectionId==pageObj.pageSectionId){
                                var pageName:String      = pageObj.pageName;
                                var pageId:Number         = pageObj.pageId;
                                var pageSectionId:Number =
pageObj.pageSectionId;
                                var newObj:Object = new Object();
                                newObj.pageName            =
pageObj.pageName;
                                newObj.pageId             =  pageObj.pageId;
                                newObj.pageSectionId     =
pageObj.pageSectionId;
                                sectionObj.addPage(pageObj);

pageSectionArr.addItem({PageName:newObj.pageName,pageId:newObj.pageId,pageSectionId:newObj.pageSectionId});
                            }
                        }

mainSectionArray.addItem({SectionName:sectionObject.sectionName,sectionId:sectionObject.sectionId,pageSectionArr:pageSectionArr});
}
}

So using this code i need to send the data to Tree.

i am getting the reecords from database.so please Let me know....the
solution.

 Reagrds
Kalai.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_in...@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to