"Allow bulk edit" keeps unselecting

Hi,

I’m trying to select the “Allow bulk edit” option for a custom child table in the Quotation doctype. Everytime I select it and click update it goes back to being unselected. Any idea why this is happening?

Hi,
Yes it is not working, don’t know why.

Try this instead :
Event - Setup
frm.get_docfield(“child_table_name”).allow_bulk_edit = 1;

Hope this helps.

Thanks

Thanks so much for replying.

What is “Event - Setup”? How do I access this?

Hi,

I have written this script on “Setup” event in client script.

Thanks

Ah Ok I see. Thanks again.

complete example…to enable using a custom script on quotation

frappe.ui.form.on('Quotation', {
	refresh(frm) {
		if(!frm.fields_dict.custom_child.grid.wrapper.find(".grid-upload").is(":visible"))
		{
		    frm.set_df_property('custom_child', 'allow_bulk_edit',1);
		    frm.fields_dict.custom_child.grid.setup_allow_bulk_edit();
		}
		
	}
})
1 Like