I am working with an Elixir Org Chart. The problem we have is that the amount of data we return is so massive that we want to load the tree in segments. How do I time it so that I call my web service and load more of the tree each time the web service returns? Do I setup some kind of recursive call to the webservice so that in Flex each time I get a response I call the webservice for more information and load that when it returns then call the webservice again? I would assume with this scenario that I have a listener that will listen for each return of the web service and then in the WebService_ResultListener I would create an IHierarchicalView orgView = chart.dataProvider as IHierarchicalView then attach those to the end? orgView.addChild(xyz_Result);
Look for examples on "lazy loading"
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Flex harUI,
That's the idea I'm going for. The problem now is, how do I get a node from the org chart? I have seen various methods like, getChild, getChildAt, getChildByName, but none of them seem to get the node I'm looking for. Each node has a unique attribute of DistID. I don't know how to use that or if I can to get the node I"m looking for. If I can do that, then I will have solved my problem and have the tree load as the results come back from my web service.