after update

I would like to alert my users with the number of rows updated/insterted/deleted after the dataprocessor has finished sending the changes to the server. How can i acheive this?

Can be done as

var state={
  update:0,
  insert:0,
  delete:0
}
dataproc.setOnAfterUpdate(function(id,action){
    state[action]++;
    if (dataproc.getSyncState())
       alert(“update=”+state.update+" insert="+state.insert+" delete="+state.delete);
});