onBeforeSaveError

fires for data saving errors

boolean onBeforeSaveError(string id,string status,object response,object details){ ... };

Parameters

idstringid of updated item
statusstringupdate status
responseobjectserver side response parsed as JSON object
detailsobjecterror details

Returns

booleanreturn true to ignore the error and mark item as saved

Example

dp.attachEvent("onBeforeSaveError", function(id, status, response, details){
    return true;
});

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