Why is this not working?
I have a datatable bound to a form.
After i insert a new row into a table (using the form) the “id” is autogenerated in the table so i use the code bellow to “update” the “id” from the backend.
But for some reason the “id” is not updated, so when i try to lets say delete the same row i get an incorrect “id” that i cannot delete from DB.
I dont get any errors.
Why is this not working?
var id = $$(“contentMarketingTable”).getLastId();
var item = $$(“contentMarketingTable”).getItem(id);
item.id = 88;
$$(“contentMarketingTable”).updateItem(id, item);