If you are using the default resultFormat, this behavior is an issue.  I'd
advise "e4x".  Or, test the result to see what it contains and conditionally
react.  ArrayUtil.toArray might also be helpful.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Nate Pearson
Sent: Thursday, July 02, 2009 12:27 PM
To: [email protected]
Subject: [flexcoders] Re: Item Renderer doesn't work with just one Item :-(

 






I have a filter function applied. Could that be part of it?

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"valdhor" <valdhorli...@...> wrote:
>
> I seem to remember some time back (Although my memory is not what it used
to be) that if returned data only has one item it is not converted to an
array (ie. it is only a string). You may like to try checking to see if it
is an array and, if not, coercing it to an array.
> 
> I could be completely off track here though.
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Nate Pearson" <napearson99@> wrote:
> >
> > I have a custom item render on a bar chart. 
> > 
> > When my the data provider for my bar chart has just one item in it the
set data function is never gets called. Updatedisplaylist doesn't trigger
and my bar chart is blank.
> > 
> > Any ideas? I've had this bug for a while but I need to figure it out
now.
> > 
> > Thanks!
> > 
> > -Nate
> >
>



Reply via email to