Page 2 of 2
Re: Subform entries are not saved on third subform
Posted: Mon Jul 08, 2019 6:39 pm
by kev1n
Well, this is just a shot in the dark. Try increasing max input vars to a higher value:
https://wolfthemes.ticksy.com/article/11675/
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 9:20 am
by fpdragon
Thank you very much.
I changed my php.ini
max_input_vars = 10000
Same as before. Same problem.
Any other idea?
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 9:29 am
by fpdragon
also doubled
max_input_nesting_level = 128
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 11:40 am
by fpdragon
I'm working in parallel on an alternative solution
I'm thinking of using a Browse and Edit form inside an Run.iFrame.
Currently it looks promising but I'm having troubles in moving information from the main form and filling default values in the iFrame form. I still need a foreign key in the iFrame form that is filled somehow automatically with the main form element id.
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 1:39 pm
by fpdragon
I found out that I can send a default value in the iFrame form with the following code:
Code: Select all
if (nuIsNewRecord())
{
$('#dml_prj_project_id').val("5cecec3995904fb").change();
}
In the JavaScript section of the iFrame form.
Currently "5cecec3995904fb" is just a testing constant. Here I need to fill the id of the main form but I havn't figured out how to grab this value in the JavaScript context of the iFrame form.
If this is solved then I guess I have found a working solution for my application.
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 2:00 pm
by kev1n
Code: Select all
parent.nuCurrentProperties().form_id
gives you the id of the parent form.
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 2:06 pm
by fpdragon
kev1n wrote:Code: Select all
parent.nuCurrentProperties().form_id
gives you the id of the parent form.
Cool thank you.
I came to this solution:
Code: Select all
if (nuIsNewRecord())
{
$('#dml_prj_project_id').val(parent.document.getElementById('dl_projects_id').value).change();
}
By the way:
Is there a documentation or a list of all nuBuilder commands and variables that can be used in JavaScript or php?
Re: Subform entries are not saved on third subform
Posted: Tue Jul 09, 2019 2:18 pm
by kev1n
Most functions are documented in the Wiki:
https://wiki.nubuilder.cloud/ ... Javascript
nuCurrentProperties() is useful to view all properties of the current form