Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 26, 2008 08:11
open dhtmlx forum
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?
Answer posted by Support on Jun 26, 2008 08:34
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);
});