Check out the docs on the Asynchronous Completion
Token (ACT) pattern. You can use the call object to keep track of the appropriate
array index and then in the result handler store the result in the right slot.
Or something similar…
Matt
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Dave
Sent: Tuesday, May 24, 2005 11:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Storing Web
Service Results in Unique Arrays/Objects
I have a sticky situation that seems easy to solve. Each time a row
of a dataGrid (bound to webserviceA) is selected,
a request to web
serviceB is made.
The sticky part is that each unique result from
webserviceB (from a
unique row selection), must be saved in order to
be used by another
object. I don't want the results to be overwritten
each time a
request is made (i.e. when a different row of the
dataGrid is
selected).
Here is a very rough illustration of what's in my
head (very scary):
<dataGrid id="dg"
dataProvider="webserviceA" change="webserviceB.send
()" /> //request will include
<Category>{dg.selectedItem.CATEGORY}
</Category>
webserviceB result should be bound to UNIQUE
array/object so that
each result will be saved for use by other object.
Thanks for any help,
-Dave
Yahoo! Groups Links
|
- RE: [flexcoders] Storing Web Service Results in Unique Arrays/... Matt Chotin
-