Philippe,

A different approach is always to be welcomed, I'd been looking for a
solution within Flex, but what you describe is a solution to be
implemented both in Flex and Java. Now that you mention it, it seems
obvious. Thanks

Andrew

--- In [email protected], "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
> One remote call that returns the 4 Arrays or Structs (objects) in a
> Struct or Array, onResult initialise the controls?
>  
> Philippe Maegerman
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of greenfishinwater
> Sent: mercredi 27 juillet 2005 12:54
> To: [email protected]
> Subject: [flexcoders] How to co-ordinate an event after multiple remote
> objects finish
> 
> 
> I have a flex app that draws a chart, from data in a DB. The data set
> retrieved is determined by 4 seperate parameters, such as start month,
> warehouse. The possible values for these 4 parameters are retrieved
> from the same DB.
> 
> So before the chart is drawn, the 4 sets of parameter data are
> retrieved by 4 remote objects. This is actioned on the initialise
> event in 2 trees and 2 combo. The parameters can be manipulated and a
> button is be clicked to have the chart redrawn. This works fine.
> 
> What I want to happen is when the app starts up, I want the 4
> different parameters to be set to a default value, which is the first
> value in each retrieved list. Then the chart can be drawn automatically.
> 
> The problem is where to put the function call to draw the chart. I
> need  one single event that will be fired when everything is ready,
> but I don't think that exists.
> 
> One way I thought of was to remove the parameter data retieval from
> the initialise event of the component and put them in an AS function,
> and trigger the next one off when the previous result has been
> returned, then when the 4 result has beed returned call the display
> chart code.
> 
> Can anybody think of a more generic way.
> 
> Andrew
> 
> 
> 
> 
> --
> 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 
> Computer software testing
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+testing&w1=Comput
> er+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+develo
> per&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg>     Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Computer+softwar
> e+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=
> 93&.sig=dAUcEV7do91-wrRtVS641g>       Development
> <http://groups.yahoo.com/gads?t=ms&k=Development&w1=Computer+software+te
> sting&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.
> sig=AlxNUQBOI7Io7S7nhmxV0Q>   
> Software developer
> <http://groups.yahoo.com/gads?t=ms&k=Software+developer&w1=Computer+soft
> ware+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4
> &s=93&.sig=QWIit8JayomoIHLVkV3FDg>    
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have received this email in error please send it back to the person
that sent it to you. Any views or opinions presented are solely those
of author and do not necessarily represent those the Emakina Company.
Unauthorized publication, use, dissemination, forwarding, printing or
copying of this email and its associated attachments is strictly
prohibited.
> 
> We also inform you that we have checked that this message does not
contain any virus but we decline any responsability in case of any
damage caused by an a non detected virus.
> ------------------------------------------------------------------




--
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