Hi Everyone,
I need to know which even is get triggered when we delete an item from a child table?
Actually, I want to delete few record from another child table based on this.
See the blow example:
I want to delete few items from the 2nd table when item code 010-001002 get deleted from the 1st table.
I appreciate, if anyone can throw some light on it.
Edit: I got some solution but still it is uncomplete as I am not able to store the value of a row before deleting it:
Solution I got:
frappe.ui.form.on('Sales Order Item', {
items_remove: function(frm) {
msgprint("Row Removed!");
}
});
However, there is another method in the below link, which gets triggered before remove but it is no longer working for me.
frappe.ui.form.on('Sales Order Item', {
itemsbeforeremove: function(frm) {
msgprint("Before Remove Called!");
}
});
Any idea how to caputure the value of different fields of the row which gets deleted, so that on that basis I can delete the rows from the another child table.
Regards
Ruchin Sharma