So…
I have a child table called list_child
, the first column are check boxes (taken
).
Now, I want to do something as soon as the check box is marked. So I:
frappe.ui.form.on('list_chld', 'taken',
function(frm, cdt, cdn) {
src_lst = 'list_chld';
frm.refresh();
}
);
And on:
frappe.ui.form.on('Parrent Doc', {
refresh(frm) {
// do something
}
Now, whenever I check an even row of the list, my console is empty.
For now, I have a workaround, where:
frappe.ui.form.on('list_chld', 'taken',
function(frm, cdt, cdn) {
src_lst = 'list_chld';
frm.refresh();
location.reload();
}
);
However, it is hardly a good solution.
Anyone have an idea what I am missing?