Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Populate Subform with vlaues from parent form

Post Reply
hagie
Posts: 20
Joined: Fri Dec 16, 2016 12:51 pm

Populate Subform with vlaues from parent form

Unread post by hagie »

Hi,
currently I like to create a new form from a parent form to enforce some inherited values,
Let's call the it main Form and Child Form.
I've disabled the add button in the browser view for the child form and add a extra action to the parent form called "add child" with the java function:

Code: Select all

nuOpenForm(nuFORM.parent_form_id, nuFORM.parent_record_id, '5852b3a425cef0e', '-1', 'Child', nuFORM.filter)
I use this parameters because they are used in the "standard" add entry button.

Now I like to add one Filed from the parent form to the new child form. What is the best way to do this ?
something like :

Code: Select all

function nuLoadEdit() { 

if( '#name#' === "") {
    $('#name').val(parent.name);
                    }
}
Another question is what is the filter in the function - I couldn't anything in the documentaion.

Thansk for the help
regards
Stefan
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Populate Subform with vlaues from parent form

Unread post by admin »

Stefan,

I don't understand your first question, but the answer to the second question is, its used internally by nuBuilder.

Steven
Post Reply