Hi all,
I have a subtable within a doctype which is used to display some information. Programmatically, this will be purged and then filled again. If there are only few rows, this works nicely, but in case of > 5 rows, one or two rows do not get deleted and therefore remain.
The deletion code block (JavaScript) looks like this:
// remove all rows
cur_frm.get_field('composition_results').grid.grid_rows.forEach(function(row) {
row.remove();
});
I am running this on ERPNext/Frappe v10.1.
Any ideas how we could really delete all rows?