Page 1 of 1

Disable Subform Lookups

Posted: Mon May 03, 2021 4:13 pm
by vario
I can't disable subform lookup objects beyond the first row for my subforms.

i.e nuDisable('sob_rota000tcr_employee_id') works, but nuDisable('sob_rota001tcr_employee_id') doesn't.

Re: Disable Subform Lookups

Posted: Mon May 03, 2021 5:30 pm
by kev1n
For some reason, the attribute data-nu-type is empty for all lookups beyond the first row , that's why nuDisable() doesn't recognise the lookup object.

Try this fix:

Replace this line:

Code: Select all

.attr('data-nu-type', w.objects[i].type)
with

Code: Select all

.attr('data-nu-type', objectType)
Log in again after that change.

Re: Disable Subform Lookups

Posted: Mon May 03, 2021 5:57 pm
by vario
Thanks for the quick response - lookups now disabling on all rows (where required).

Re: Disable Subform Lookups

Posted: Sat May 15, 2021 9:05 am
by kev1n
Great - the fix is on Gitub now.