Documentation

onAfterSaveError

fires for data saving errors

void onAfterSaveError(id id,object status,object response,object details){ ... };

Parameters

ididid of updated item
statusobjectupdate status
responseobjectserver side response parsed as json object
detailsobjecterror details

Example

dp.attachEvent("onBeforeSaveError", function(id){
    //...
});

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