Tom,
What I usually do when I have several components using the same source
of data, I use the power of databinding.
Imagine 1 datagrid and 2 trees all using data from the same source
(your http result), what I do, I create a function for each
destination that will return the dataProvider formated as I want and
accept my source as parameter.
When manipulating the source, all those functions execute automaticly.
What I usually use is dataProvider="{someFunction(mySource)}" and
someFunction returns the data formated as I want.
João Fernandes
--- In [email protected], "Tom Jeffery" <[EMAIL PROTECTED]> wrote:
> I'm trying to come up with a way to have multiple tree components
> share the same global data provider. I want to have all instances of
> the components updated to reflect changes to any of them, as though it
> was a file folder. I've created a global HTTP service object in my
> main application which passes the results down to the trees for the
> initial seeding from my xml source, but I can't figure out how to
> properly go about having all the trees dynamically update on a change
> event.
>
> Updating the instance of the tree that has the action performed on it
> doesn't alter the global data, and if I modify the global data, it
> only shows changes to trees if they haven't already been instantiated
> when the change happens. Is there some trick to this that I'm not
> seeing, or is this really complicated?
>
> Thanks for any assistance,
> -Tom Jeffery
--
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/