Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Disable Subform Lookups

Questions related to using nuBuilder Forte.
Post Reply
vario
Posts: 153
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
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: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 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: 153
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
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: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Disable Subform Lookups

Unread post by kev1n »

Great - the fix is on Gitub now.
Post Reply