Expand my Community achievements bar.

[object, Object] in datagrid whose dataprovider is an ArrayCollection

Avatar

Level 2
Hi



I created an MXML app which retreive data from Oracle DBMS
through java remote object and FDS2 and populate the data to a Data
Grid. It works fine. But, when I try to use an ArrayCollection as
it has been explained in the Adobe Developer manual, I got in the
first item of the datagrid [object, Object]. Why?
1 Reply

Avatar

Level 1
it sounds to me that your ArrayCollection contains an Objects
instead of String or integers or floats that the data grid can
render easily. You will have to specifically reference the object
property (inside the arraycollection) you wish to map in the
columns property(s) of the Datagrid.



have a look here.




http://livedocs.macromedia.com/flex/2/docs/00000594.html