Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Subform entries are not saved on third subform

Questions related to using nuBuilder Forte.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Subform entries are not saved on third subform

Unread post 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/
fpdragon
Posts: 38
Joined: Wed May 29, 2019 2:50 pm

Re: Subform entries are not saved on third subform

Unread post by fpdragon »

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/
Thank you very much.

I changed my php.ini
max_input_vars = 10000

Same as before. Same problem.

Any other idea?
fpdragon
Posts: 38
Joined: Wed May 29, 2019 2:50 pm

Re: Subform entries are not saved on third subform

Unread post by fpdragon »

also doubled
max_input_nesting_level = 128
fpdragon
Posts: 38
Joined: Wed May 29, 2019 2:50 pm

Re: Subform entries are not saved on third subform

Unread post 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.
fpdragon
Posts: 38
Joined: Wed May 29, 2019 2:50 pm

Re: Subform entries are not saved on third subform

Unread post 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.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Subform entries are not saved on third subform

Unread post by kev1n »

Code: Select all

parent.nuCurrentProperties().form_id
gives you the id of the parent form.
fpdragon
Posts: 38
Joined: Wed May 29, 2019 2:50 pm

Re: Subform entries are not saved on third subform

Unread post 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?
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Subform entries are not saved on third subform

Unread post 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
Post Reply