fires for data saving errors
id | string | id of updated item |
status | string | update status |
response | object | server side response parsed as JSON object |
details | object | error details |
boolean | return true to ignore the error and mark item as saved |
dp.attachEvent("onBeforeSaveError", function(id, status, response, details){
return true;
});
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
}