onAfterSaveError

fires for data saving errors

void onAfterSaveError(string id,string status,object response,object details);
idstringid of updated item
statusstringupdate status
responseobjectserver side response parsed as JSON object
detailsobjecterror details

Example

dp.attachEvent("onAfterSaveError", function(id, status, response, details){
    //...
});

Details

The structure of the response object:

{
   id:"id of the item",
   status:"update status",
   newid:"new id after operation"
}

The structure of the details object:

{
   text:"full text of server side response",
   data:"webix ajax data related to the error",
   loader: xhr // xmlHttpRequest object related to the error
}
See also
Back to top