I have a ListGrid with records in it from a client only data source A. I need select some of the ListGrid records and submit an "add" request to datasource B for each one. When each "add" request completes I need to update the ListGridRecord associated with that add request, flagging it with an error if the request was not successful, or updating a field value it it was.
My plan is to use RPCManager.startQueue() and sendQueue() to process all the adds in one roundtrip to the server. On each DSRequest I create I'll use setAttribute() to put the ListGrid record index on the request so it will be returned on the callback.
I suppose my only question is, how do I know when I've processed the last response in the queue? There is no callback on the sendQueue() method. Each DSRequest will result in a callback, but how do I know when I've processed the last one?
My plan is to use RPCManager.startQueue() and sendQueue() to process all the adds in one roundtrip to the server. On each DSRequest I create I'll use setAttribute() to put the ListGrid record index on the request so it will be returned on the callback.
I suppose my only question is, how do I know when I've processed the last response in the queue? There is no callback on the sendQueue() method. Each DSRequest will result in a callback, but how do I know when I've processed the last one?
Comment