Hi,

You asked: "One last thing, is this the place to ask these questions, or
is there a flex
1/2 group like this too?"

Yes, it is called FlexCoders.  Subscribe info is here:
http://www.flexcoders.org/index.html

-David 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Jonas Windey
> Sent: Friday, December 23, 2005 7:29 AM
> To: [email protected]
> Subject: [Flashcoders] Flex 2.0 Tree control dataprovider problem.
> 
> Hi all,
> 
> I'm experimenting a bit with flex 2.0 alpha, and I'm trying 
> to use a webservice to provide the datasource of my tree 
> control. I took the xml structure that can be found in the 
> examples explorer, and made a webservice that is giving 
> exactly the same result:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <node>
>   <node label="Technology">
>     <node label="ASP.NET" />
>     <node label="HTML/CSS" />
>     <node label="Javascript" />
>     <node label="SQL" />
>     <node label="Tech Experiments" />
>   </node>
>   <node label="Utilities">
>     <node label="Client tools" />
>     <node label="Server tools" />
>   </node>
>   <node label="Design">
>     <node label="Cool layouts" />
>     <node label="Design experiments" />
>   </node>
>   <node label="Usability">
>   </node>
>   <node label="Off-topic">
>   </node>
> </node>
> 
> Now comes the problem, when I give my treeview this result as 
> datasource, the output isn't what it should be, as can be 
> seen on this url:
> http://www.narcisten.be/pl_treeProblem.jpg
> 
> I've tried setting the dataprovide as 
> event.result.childNodes[0], but no luck.
> Here's my code (without the markup)
> 
> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";
> creationComplete="catWS.getCategories.send();" fontSize="11">
> 
> ...
> 
> <mx:WebService result="catTree.dataProvider=event.result" id="catWS"
> wsdl="http://localhost:1200/pixcoID/pixcoThoughts.asmx?WSDL";
> showBusyCursor="true" fault="Alert.show(event.fault.faultstring)">
>       <mx:operation name="getCategories">
>               <mx:request>
>                       <intAccountID>
>                               1
>                       </intAccountID>
>               </mx:request>
>       </mx:operation>
> </mx:WebService>
> 
> 
> In the code example, the tree control uses a httpservice, and 
> there you can use event.result.node, which looks inside the 
> xml to loop through the correct nodes.
> 
> Any suggestions? Thanks in advance.
> 
> One last thing, is this the place to ask these questions, or 
> is there a flex
> 1/2 group like this too?
> 
> Jonas
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to