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.

Disable Subform Lookups

Questions related to using nuBuilder Forte.
Post Reply
vario
Posts: 154
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 2 times
Been thanked: 1 time

Disable Subform Lookups

Unread post 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.
kev1n
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

Unread post 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.
vario
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

Unread post by vario »

Thanks for the quick response - lookups now disabling on all rows (where required).
kev1n
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

Unread post by kev1n »

Great - the fix is on Github now.
Post Reply