processResult

process data saving results

void processResult(object data);
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 a custom saving logic, it's possible to call processResult() to finish the updating process.

The data object can have the following parameters:

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