Hi
I saw a video of some custom code where each row of a child table has a custom button. But it does not appear to be a “BUtton” field simply added to the child table definition. It is a nice little icon-button right next to the “pencil” edit icon on each row of the child table.
I can think of a few nice use-cases for something like that..
This code adds a button at the bottom of the child table. Not exactly what I want ….
frm.fields_dict['items'].grid.add_custom_button(__('Check Stock'), function() {
const doc = frm.doc;
frappe.msgprint("You clicked the button on the Sales Invoice!");
});
},
Would appreciate if someone can help. Seems like a nice feature to use.