I’ve got a DataTable which is binded to a form, when somebody clicks an item the form obviously get populated.
To save the changes, there are 2 buttons, “Update” to update the current DataTable row, or “Insert” to insert the changes as a new row.
For Update I simply call form.save(). which works perfectly.
But how would you handle Insert? At the moment I’m simply trying to change the rows ID field, but I get an error which says “attempt to change ID in updateitem”.