Documentation

onBeforeSaveError

fires for data saving errors

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

Parameters

ididid of updated item
statusobjectupdate 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){
    return true;
});

Details

Structure of status

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

Structure of details

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