To solve that, have each db call increemt an instance variable counter,
and have the result handler decrement it (the faoult handler too).  When
the counter is zero, instantiate the children.

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of johantrax
Sent: Thursday, November 01, 2007 6:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Hold execution untill result from database

 

I doubt this to work correctly.
This most propably will work if I only have to make 1 request to a db,
however if the canvas makes 3 calls to the getUIComponent-method (for
instantiating 3 children), how will I know which call will take the
longest ?

--Johan

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Perhaps set creationPolicy="none", then trigger a call to
> createChildren() from the resultHandler.
> 
> Tracy
> 

 

Reply via email to