Yep, as I said earlier, don't do it like that. This warning is one reason. It won't work if you call the rpc service again. Use a result handler.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche Sent: Friday, February 01, 2008 3:18 PM To: [email protected] Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider name That worked! I still get the following warning: Data binding will not be able to detect changes when using square bracket operator. For Array, please use ArrraCollection.getItemAt() instead. But it still works. brad -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jer_ela Sent: Friday, February 01, 2008 3:01 PM To: [email protected] Subject: [flexcoders] Re: Embedding String Variable in dataprovider name If you use the square brackets then you don't use the dot so it should be: dataProvider="{chartXML2.lastResult[month].day}" --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Maciek Sakrejda <[EMAIL PROTECTED]> wrote: > > I'm no e4xpert, but > > dataProvider="{chartXML2.lastResult.[month].day}" > > should do it. > > -- > Maciek Sakrejda > Truviso, Inc. > http://www.truviso.com <http://www.truviso.com> > > -----Original Message----- > From: brad.bueche <[EMAIL PROTECTED]> > Reply-To: [email protected] <mailto:flexcoders%40yahoogroups.com> > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Embedding String Variable in dataprovider name > Date: Fri, 01 Feb 2008 15:40:25 -0000 > > Really what I need to be able to do is insert the variable name in this: > > dataProvider="{chartXML2.lastResult.month.day}" > > I need to replace the "month" with a string variable name (i.e public > var monthName = "January";) > > I also need to do the same for the categoryfield as it will not let me > do categoryfield=$String. > > In PHP this is incredibly easy to do. You just say blah=$string . In > fact, in PHP you can embed variable names everywhere. Its very > powerful. For instance, in php, for the dataprovider issue above, i'd > just do > > dataProvider="{chartXML2.lastResult.$StringName.day}" > > and it'd work just fine. Whats the syntax for doing this in Flex? >

