Documentation

processResult

process data saving results

void processResult(object data);

Parameters

dataobjectresponse data objects

Example

webix.ajax("save.php", data, function(text, data, loader){
     ...
     dp.processResult({
         id:"123",
         status:"update"
     });
});

Details

Can be used for custom data saving logic. After applying custom saving logic, it possible to call processResult to finish updating process.

The data object can have next parameters:

  • id - ID of item;
  • newId - new ID ( in case of insert operation it is expected that server side will generate new ID );
  • status - result of operation ("update", "insert", "delete", "error", "invalid").
Back to top