Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-03-01 Thread jwopitz
Even though you have a solution to your problem, I would strongly suggest looking at how the listBase sets its dataProvider. After it has gone through the process of setting its protected collection property, it creates a new CollectionEvent with the kind set to CollectionEventKind.RESET. It

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-03-01 Thread Webdevotion
Interesting question ... Did you try the method described in this thread ? On 2/27/07, Douglas Knudsen [EMAIL PROTECTED] wrote: Nice. What if in this case user.projects.myArrayCollection contained a arraycollection of tasks, and each tasks had a array collection of activities. how do you

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-28 Thread Douglas Knudsen
Nice. What if in this case user.projects.myArrayCollection contained a arraycollection of tasks, and each tasks had a array collection of activities. how do you watch for a change in a activity and fire dataGrid.invalidateList(); ?? DK On 2/24/07, Yiðit Boyar [EMAIL PROTECTED] wrote: i had

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-28 Thread Webdevotion
Found your question also in another thread. Can you post the answer to this thread please ? If you find it eventually that is : )

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-27 Thread Webdevotion
Thanks fellow Flex coders; Slangeberg's tip did the trick I was looking for ; ) On 2/25/07, slangeberg [EMAIL PROTECTED] wrote: You can use simple binding, via {} brackets. MyComp dataProvider={model.library} / Or, you can use the ChangeWatcher: ChangeWatcher.watch( model, library,

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Webdevotion
I'm getting my data back from a Ruby service. The service method I'm calling is query of joined tables. RoR returns this as an array of AlbumVO's. Every AlbumVO item contains an array of TrackVO's. That's the way it works. To be able to use this data structure in my datagrid, I have to loop

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread slangeberg
You can use simple binding, via {} brackets. MyComp dataProvider={model.library} / Or, you can use the ChangeWatcher: ChangeWatcher.watch( model, library, onLibraryChange ); function onLibraryChange(){ /*do stuff*/ } -Scott On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote: Hello, How

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Michael Schmalle
Hi, Why not just make it a get, set bindable property in your ModelLocator? Then you could dispatch and event or really whatever you want to do. Peace, Mike On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote: Hello, How can I now when my arraycollection in my modellocator is filled with

Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Yiðit Boyar
i had a similar problem; when an array collection in my model is changed; my datagrid should be refreshed so here is my code: (here ; user.projects is an arrayCollection) in the creation complete of the mxml file : ModelVT.getInstance().user.projects.addEventListener(collectionChange,dgYenile);

RE: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-25 Thread Dimitrios Gianninas
It depends on what u are trying to do... give a little more detail and we will be able to help you. Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of Webdevotion Sent: Sat 2/24/2007 4:20 PM To: flexcoders@yahoogroups.com

[flexcoders] Finding out when an arraycollection in my model is set

2007-02-24 Thread Webdevotion
Hello, How can I now when my arraycollection in my modellocator is filled with items ? I tried using collectionEvent.collection_change, but it does not fire when setting my AC like this in my command, after the remoting result handler: model.library = new ArrayCollection(data.result); What is