Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to bind data returned from fill() method with another Collection

Avatar

Level 2
I have a need to convert the ArrayCollection returned by the
fill() method of my dataservice into an XMLListCollection. The
XMLListCollection is used by a DataGrid control that has
itemEditors for each column. I have an action script function that
converts ArrayCollection to XMLListCollection. I am trying to find
a way to throw an event that calls the action script function
whenever fill() method refreshes the ArrayCollection (basically
whenever data in the data gets changed).



Thanks in advance.
1 Reply

Avatar

Level 2
<mx:DataService /> generates a "message" event when
there's a fill update. Alternatively, ArrayCollection also
generates a "collecitonChange" event when it's changed.



Just out of curiosity, is there a reason you are not binding
the managed ArrayCollection directly to the data grid?