dataprocessor

I would like to show an alert after the updates have been successfully saved into the database. How can i do that??


can be done as


dp.setOnAfterUpdate(function(){
if (dp.getSyncState()) alert(“all updated”);
});


where dp - dataprocessor instance