If I understand correctly, the OP has separate calls to get the data for the four lists. If so, what is the problem? Just assign the dataProvider as needed.
You are using result handlers, storing the data in instance variables, and not trying to bind directly to lastResult, correct? Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Thursday, August 21, 2008 2:33 PM To: [email protected] Subject: [flexcoders] Re: Change dataProvider at runtime? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "cox.blair" <[EMAIL PROTECTED]> wrote: > > Does anyone have experience with changing a dataprovider at runtime? > > Scenerio: a grocery store Database has four tables, one for Produce, > Dairy, Meat and Other. Each of the tables is a different > arrayCollection/HTTPService > > I want to be able to have four comboboxes, each able to point to any > of the four arrayCollection's, therefore to change the datasource of > each series in a chart. > > Why? Because it would allow you to compare values of different data > sets in a single chart. I did not expect this would be such an issue. > > If anyone can provide any information at all, it would be a huge help. Preferred method: If you have any control over the database, FIX THE DESIGN. If not, use a UNION query to normalize the data, then use a filter function to filter on grocery type and refresh the ArrayCollection. Icky method: If you have no control over the backend at all, then you can use something like myChart.dataProvider = nastyArrayCollection ;-) HTH; Amy

