Well, this is just a shot in the dark. Try increasing max input vars to a higher value:
https://wolfthemes.ticksy.com/article/11675/
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Subform entries are not saved on third subform
-
- Posts: 38
- Joined: Wed May 29, 2019 2:50 pm
Re: Subform entries are not saved on third subform
Thank you very much.kev1n wrote:Well, this is just a shot in the dark. Try increasing max input vars to a higher value:
https://wolfthemes.ticksy.com/article/11675/
I changed my php.ini
max_input_vars = 10000
Same as before. Same problem.
Any other idea?
-
- Posts: 38
- Joined: Wed May 29, 2019 2:50 pm
-
- Posts: 38
- Joined: Wed May 29, 2019 2:50 pm
Re: Subform entries are not saved on third subform
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.
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.
-
- Posts: 38
- Joined: Wed May 29, 2019 2:50 pm
Re: Subform entries are not saved on third subform
I found out that I can send a default value in the iFrame form with the following code:
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.
Code: Select all
if (nuIsNewRecord())
{
$('#dml_prj_project_id').val("5cecec3995904fb").change();
}
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.
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: Subform entries are not saved on third subform
Code: Select all
parent.nuCurrentProperties().form_id
-
- Posts: 38
- Joined: Wed May 29, 2019 2:50 pm
Re: Subform entries are not saved on third subform
Cool thank you.kev1n wrote:gives you the id of the parent form.Code: Select all
parent.nuCurrentProperties().form_id
I came to this solution:
Code: Select all
if (nuIsNewRecord())
{
$('#dml_prj_project_id').val(parent.document.getElementById('dl_projects_id').value).change();
}
Is there a documentation or a list of all nuBuilder commands and variables that can be used in JavaScript or php?
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: Subform entries are not saved on third subform
Most functions are documented in the Wiki: https://wiki.nubuilder.cloud/ ... Javascript
nuCurrentProperties() is useful to view all properties of the current form
nuCurrentProperties() is useful to view all properties of the current form