|
You should be able to do item.getProperty(“filterName”)
and item.getProperty(“categoryName”) etc. and not have to use the
backingObject directly. Matt From:
[email protected] [mailto:[EMAIL PROTECTED] Jeff I appreciate the response , but i think i
didn't explain myself very well , I know i can implement the API , and i
know i can write a method that loads the tree , BUT - there is an easy way to do this by
assigning the result of the Web Service as the DataProvider of
the Tree. the only problem is that i found that
you have to access an object called backingObject (macromedia internal) and macromedia guys say there is more
formal way doing this , which i failed to do . in short here is the code. you can see the
reference to this object if you remove it IT WON'T WORK. <mx:script> function myLabelFunc(item):String { </mx:script> <mx:WebService id="UserCategoriesWS"
result="onResult(event)"
wsdl="@ContextRoot()/services/UserCategoriesWS?wsdl" <mx:Tree id="filterTree"
labelFunction="myLabelFunc"
dataProvider="{UserCategoriesWS.getUserFilterCategories.result}"
width="100%" height="100%" fontSize="10"/> From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Krueger I think what you want to do is create a
object that implements the TreeDataProviderAPI. In this object it will be
responsible for calling your webservice and get that data back and put it into
AS objects. Then create your tree. At any given node you can have
additional information. So in the DATA part of each node stick your AS
object. Then when the user clicks on a node , you will have a AS object
that represents your java object that you can do something with. That
being said I have tried to implement the TreeDataProviderAPI and was frustrated
by it and the lack of documentation. I was trying to create a lazy fetch
tree control. And trying to figure out the events, and the way everything
is linked can be difficult Jeff
Yahoo! Groups Links
|
- [flexcoders] Newby: How to use "Manage Sites" Matt Chotin
- [flexcoders] Newby: How to use "Manage Sites" Libby Chantel

