Welcome to the nuBuilder Forums!

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

Subform Row Prefix for Lookup

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
vario
Posts: 151
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time

Subform Row Prefix for Lookup

Unread post by vario »

I have a lookup in a subform and want to use "After Browse" to populate a field in the same subform row.
How do I find the subform row prefix for use in nuSetFormValue() or am I going about this the wrong way?

I thought to use:

Code: Select all

$qty=nuLookupRecord()->pur_qty;
nuSetFormValue("sob_parts_fitted".$rowprefix."pur_qty",$qty);
Any advice on how to get $rowprefix value or a better way?

Neil.
kev1n
nuBuilder Team
Posts: 4302
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Subform Row Prefix for Lookup

Unread post by kev1n »

It works for me without providing a prefix, pass the column/object id of the field.
vario
Posts: 151
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time

Re: Subform Row Prefix for Lookup

Unread post by vario »

OK thanks - no prefix needed!
Post Reply