Hi
I made a form with several subforms. Everything seems ok but on a few registrations (forms) the values of the subform actions dissapears after save. In other registrations everything works fine and every value of actions is saved in the database.
Any idea how to solve this problem?
Johan
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
subform value disappears
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: subform value disappears
Hi,
What do you mean by subform actions?
Besides, this question is way to abstract imo.
What do you mean by subform actions?
Besides, this question is way to abstract imo.
Re: subform value disappears
Hi
I'll try to explane with a printscreen. This is the subform. It's in the form 'clienten'.
In some forms (not all) I can't save any value in the subform actie. If I save the form, the value of the subform dissapears.
When I add a row in the database table with foreignkey the ID of that form, it appears (and stays) in the subform. But when I try to delete that row from my subform it won't go away.
It's strange because in most of the forms it works fine.
Johan
I'll try to explane with a printscreen. This is the subform. It's in the form 'clienten'.
In some forms (not all) I can't save any value in the subform actie. If I save the form, the value of the subform dissapears.
When I add a row in the database table with foreignkey the ID of that form, it appears (and stays) in the subform. But when I try to delete that row from my subform it won't go away.
It's strange because in most of the forms it works fine.
Johan
You do not have the required permissions to view the files attached to this post.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: subform value disappears
I'd first verify some basic things (you might have done it already).
1. Make sure that the Foreign Key is correct. (use the up-/down-arrows to verify that it is correct) 2. Make sure that the primary and foreign key are of the same data type
3. Make sure that primary keys are set in each table.
4. Last but not least: This is the recommended table structure (https://wiki.nubuilder.net/nubuilderv3/ ... _Structure)
(don't use auto-incrementing numbers for PKs)
1. Make sure that the Foreign Key is correct. (use the up-/down-arrows to verify that it is correct) 2. Make sure that the primary and foreign key are of the same data type
3. Make sure that primary keys are set in each table.
4. Last but not least: This is the recommended table structure (https://wiki.nubuilder.net/nubuilderv3/ ... _Structure)
(don't use auto-incrementing numbers for PKs)
You do not have the required permissions to view the files attached to this post.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: subform value disappears
What if you temporarily remove the dropdown (select) object and then check if the data is saved when you enter some data in the "datum" field?
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: subform value disappears
It's really hard to say where the problem lies..
I can offer the following if you want: Create a new, separate nuBuilder DB, create a simple/slimmed down form/subform and upload an sql dump of the db here. Then I can have a closer look at it.
I can offer the following if you want: Create a new, separate nuBuilder DB, create a simple/slimmed down form/subform and upload an sql dump of the db here. Then I can have a closer look at it.
Re: subform value disappears
Toms
Thanks for your offer but I've found the problem
I've increase max_input_vars.
Johan
Thanks for your offer but I've found the problem
Code: Select all
[Wed Jul 18 10:31:47.523482 2018] [:error] [pid 20525] [client 192.168.100.1:8501] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer:
Johan