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




YAHOO! GROUPS LINKS




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

Reply via email to