I’m having a brain freeze… Looking at the code from https://docs.webix.com/desktop__dataprocessor.html
Track successful and unsuccessful server-side responses separately with the help of onAfterSync and onAfterSaveError events respectively:
Successful server response
dp.attachEvent('onAfterSync', function(statusObj, text, data, loader){
var response = data.xml(),
hash = response.data;
//hash {status:"", id:"", newid:""}
});
- status - the status of operation (“success”/“error”/“invalid”);
- id - obligatory, item ID that was sent to the server for update;
- newid - item ID returned from the server after update.
I want to write status, id, and newid to the javascript console. How do I get their values?
Thanks.