Remember that data service calls are asynchronous, and you must either bind to 
the result or use a result handler.  In truth, I never bind directly to a data 
service result, it is just too hard to debug.  I always use a result handler 
first, then assign the result to a member variable, and bind to that.

Tracy 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL 
PROTECTED]
Sent: Wednesday, October 26, 2005 4:01 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem with redawing tree xml content

Wow thanks. This works. Didn't know I have to do it in the result handler.



On 20 Oct 2005 at 12:37, Tracy Spratt wrote:

> Try re-assigning the dataProvider to the tree in a result handler
> function.
> 
> Tracy
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jrab2999
> Sent: Thursday, October 20, 2005 10:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Problem with redawing tree xml content
> 
> Hello clubbers,
> 
> 
> I have a problem with refreshing a tree:
> 
> Look at my code:
> ----
> 
> script
> 
> var treeDP:XML;
> 
> function selectRange() {
>  rangesid = ranges.selectedItem.id;
>  treeDP = new XML();
>  treeService.clearResult(true);
>  treeService.url = rangesid + ".xml";
>  //tree.invalidate();
>  treeService.send();
> }
> 
> write someting into treeDP....
> 
> finish.
> 
> /script
> 
> <mx:Tree id="tree" change="changeTree(event)"
> liveScrolling="true"><mx:dataProvider>{treeDP}</mx:dataProvider></mx:Tre
> e>
> 
> ---
> 
> If I later write another content to treeDP, the tree just disappears.
> Why this? The strange thing is, debugging approves that the new
> contents are stored in treeDP. Should I use a XMLCollection for treeDP
> instead of XML? Why the tree disappears but content is there??
> Is it a bug?
> 
> Thanks for help.
> 
> Re, Jurek
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> SPONSORED LINKS 
> Web site design 
> development 
> Computer software 
> development 
> Software design and 
> development 
> 
> Macromedia flex 
> Software development best 
> practice 
> 
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
> *   Visit your group "flexcoders" on the web.
>      
> *   To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]
>      
> *   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> 


Mit freundlichen Grüßen

Jurek Raben


-------------------------------
AMW Alster Media & Werbung GmbH
Jurek Raben
Friedrich-Ebert-Damm 160b
22047 Hamburg
Tel.: +49 (0)40 3068320 
Fax: +49 (0)40 30683220  







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to