Populate Subform with vlaues from parent form
Posted: Sat Dec 17, 2016 12:50 am
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:
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 :
Another question is what is the filter in the function - I couldn't anything in the documentaion.
Thansk for the help
regards
Stefan
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)
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);
}
}
Thansk for the help
regards
Stefan