Page 1 of 1

Subform Row Prefix for Lookup

Posted: Sat Mar 05, 2022 9:20 am
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.

Re: Subform Row Prefix for Lookup

Posted: Sat Mar 05, 2022 9:35 am
by kev1n
It works for me without providing a prefix, pass the column/object id of the field.

Re: Subform Row Prefix for Lookup

Posted: Sat Mar 05, 2022 9:39 am
by vario
OK thanks - no prefix needed!