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.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Disable Subform Lookups
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Disable Subform Lookups
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:
with
Log in again after that change.
Try this fix:
Replace this line:
Code: Select all
.attr('data-nu-type', w.objects[i].type)
Code: Select all
.attr('data-nu-type', objectType)
-
- Posts: 154
- Joined: Mon Dec 05, 2011 12:23 pm
- Location: Newton Abbot, UK
- Has thanked: 2 times
- Been thanked: 1 time
Re: Disable Subform Lookups
Thanks for the quick response - lookups now disabling on all rows (where required).
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact: