Page 1 of 1

Embedded form/main form relationship

Posted: Thu May 17, 2018 7:40 pm
by christofng
Hi, first of all, this is a very interesting software and thanks for all the help.

I have a question regarded an embedded browse and edit form. The embedded form is related to the main form's primary key. And when I browse or edit, the items in the embedded form are selected correctly (i.e. only the ones matching the main form's primary key).

However, when I try to add a new item in the embedded form (see the "Product" field in the attached image), the related item is not automatically populated. Is there any way to automatically populate the field that is linked to the main form when adding a new item? Thanks much.

Re: Embedded form/main form relationship

Posted: Fri May 18, 2018 8:41 am
by toms
the related item is not automatically populated.
Is that field on the main form?

There's a nuSetFormValue() function:
Updates an Object on an Edit Form After Browse after a Lookup value is chosen.
https://wiki.nubuilder.cloud/ ... tFormValue