I’ve built a simple datatable which uses a REST backend. It’s working pretty well, but there’s one condition that’s not working.
If I insert a new row, and then change a value to an invalid value, the PUT that tries to do the update returns a 409. However the datatable doesn’t change the value back. The datatable correctly changes the value back when editing existing rows.
There’s not much code with this datatable. Could I be handling the insert incorrectly? Here’s the onAfterInsert function:
var artist_datatable_dp = webix.dp(‘artist_datatable’)
artist_datatable_dp.attachEvent(‘onAfterInsert’, function(response, id, details) {
var record = $$(‘artist_datatable’).getItem(id);
record.id = response[0].newid;
});
Thanks inadvance!