Expand my Community achievements bar.

Detecting changes to managed collection

Avatar

Level 2
If I have autoSync enabled on a DataService, how do I detect
synchronisation events on a filled collection? I am using an
Assembler. On my initial fill:

this._ds.fill(listCollection, rest);



I get a CollectionChanged event as expected on
listCollection. When the fill is subsequently executed on the
server, I can see my fill method being called on the server, but
the CollectionChanged event is not being fired in response on the
client.



I am doing things this way because I want an external RPC
call to update a data object on the server, resulting in changes on
the managed server data objects. The RPC call creates a
transaction,



tx = DataServiceTransaction.begin(false);

....

....

tx.refreshFill("cdApps", null);

tx.commit();





This correctly results in the Assembler fill method being
called -



public Collection fill(List fillParameters)



But, alas, no indication at all on the client that a change
has happened in the remote collection (I am tracking all the
DataService events, but none are being fired).
1 Reply

Avatar

Level 2
I guess the question here is simply - can objects in a manged
DataService collection be updated by a non-Flex client, in such a
way that changes can be pushed to clients through DataService? T



his post in this forum




http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=583&threadid=1201197&h...




seems to suggest it is, but I have spent many hours and
although I can get the server fill() method to fire, and although
the client collection is showing up as managed, the two things
never connect...