To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
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
: [flexcoders] Re: Embedding String Variable in dataprovider name
For the immediate problem, add some code to the function that checks
the first parameter for null, and returns a null value of the
appropriate type in that case.
But for a more robust application, you should stop using lastResult
PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, February 06, 2008 4:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider
name
Yes, binding to lastResult is, as you are seeing, hard to debug. Use a
result handler.
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Wednesday, February 06, 2008 5:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider
name
So something like
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name
you can use a method to get around that
dataProvider={getDp(chartXML2.lastResult, month)}
private function getDp(lastResult:Object, month:String):String
{ return lastResult[month].day;
}
The method will be called when ever
-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Friday, February 01, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name
If you use the square brackets then you don't use the dot so
If you use the square brackets then you don't use the dot so it should be:
dataProvider={chartXML2.lastResult[month].day}
--- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote:
I'm no e4xpert, but
dataProvider={chartXML2.lastResult.[month].day}
should do it.
--
:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Friday, February 01, 2008 3:01 PM
To: flexcoders@yahoogroups.com
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
, February 01, 2008 3:18 PM
To: flexcoders@yahoogroups.com
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
9 matches
Mail list logo