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 & hash cookies
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Subform & hash cookies
Steven,
I was testing an application with subform with higher number of data and observed some unstable behaviour:
(I have procedure to add data to the subform table so it was quite easy to check with any number of records)
My subform is composed of one Lookup and few display fields (per row).
1. Up to about 50 records in the subform everything works OK
starting with 50 or 60 records in the subform I observe the following:
2. Reading values directly from the edit main form objects with # cookies are not working anymore, when I used the nuSetProperty to transfer object data to php procedure it was ok.
3. Subform checkboxes are not removing lines after saving (you can check, but after save the line is not removed)
4. You can not add manually new records to the subform
5. when the subform has above 1000 records it is not displaying data (records are availabe when checking by phpmyadmin)
Normally in typical application I will be in the safe zone - belowe 50 records - but maybe during the next release you could have a look on it.
I was testing an application with subform with higher number of data and observed some unstable behaviour:
(I have procedure to add data to the subform table so it was quite easy to check with any number of records)
My subform is composed of one Lookup and few display fields (per row).
1. Up to about 50 records in the subform everything works OK
starting with 50 or 60 records in the subform I observe the following:
2. Reading values directly from the edit main form objects with # cookies are not working anymore, when I used the nuSetProperty to transfer object data to php procedure it was ok.
3. Subform checkboxes are not removing lines after saving (you can check, but after save the line is not removed)
4. You can not add manually new records to the subform
5. when the subform has above 1000 records it is not displaying data (records are availabe when checking by phpmyadmin)
Normally in typical application I will be in the safe zone - belowe 50 records - but maybe during the next release you could have a look on it.
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Subform & hash cookies
I'm not even able to add 10 rows in a row. The page then hangs up and turns completely blank after some time. Test done with Access Level - Forms subform:
Code: Select all
for (var i = 0; i < 10; i++) {
nuAddRow('accform')
}
Re: Subform & hash cookies
Guys,
I believe this is fixed now on Sourceforge... https://sourceforge.net/projects/nubuilder/
Still, don't try it with a Subform of over 999 records though.
You should be able to have ten Subforms with under 1000 in each on a Form but if you click Save on something like this, you've probably got time to go and get a coffee.
Steven
I believe this is fixed now on Sourceforge... https://sourceforge.net/projects/nubuilder/
Still, don't try it with a Subform of over 999 records though.
You should be able to have ten Subforms with under 1000 in each on a Form but if you click Save on something like this, you've probably got time to go and get a coffee.
Steven
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Subform & hash cookies
Steven,
Just for info. With the lates version I have the same situation. To the subform I can add max 58 records (in the standard way)
Above that number the delete and adding option is not working in my case.
Just for info. With the lates version I have the same situation. To the subform I can add max 58 records (in the standard way)
Above that number the delete and adding option is not working in my case.
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Subform & hash cookies
Janusz: How are you able to add multiple rows at the same time?
There's always just one row added when calling nuAddRow('accform') multiple times.
Does it work for you?
Access Levels -> Subform "Forms"
https://streamable.com/zuutd
There's always just one row added when calling nuAddRow('accform') multiple times.
Does it work for you?
Access Levels -> Subform "Forms"
https://streamable.com/zuutd
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Subform & hash cookies
Hi,
Besides standard way to add or remove records to the subform I use "drag and drop" to add files to the subform with the drop box outside the subform (on the main form).
Files are stored on the server and links to files are added with php directly to the mysql subform table so after (auto) refresh I have all (multiple) records added to the subform.
Working directly with php I can add or remove any number of records
(above 1000 records there is a problem with display - but it's not real issue - it was just for my curiousity to check the limit - normally max 100 is sufficient for me).
But with standard way of adding the records one by one at c.a. 58 records you can not add anymore additional records or delete records with the checkboxes
Besides standard way to add or remove records to the subform I use "drag and drop" to add files to the subform with the drop box outside the subform (on the main form).
Files are stored on the server and links to files are added with php directly to the mysql subform table so after (auto) refresh I have all (multiple) records added to the subform.
Working directly with php I can add or remove any number of records
(above 1000 records there is a problem with display - but it's not real issue - it was just for my curiousity to check the limit - normally max 100 is sufficient for me).
But with standard way of adding the records one by one at c.a. 58 records you can not add anymore additional records or delete records with the checkboxes
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Subform & hash cookies
the problem with limited number of rows in the subform was solved by increasing in the php.ini the following variable:
max_input_vars 2000 (default is 1000)
max_input_vars 2000 (default is 1000)
If you like nuBuilder, please leave a review on SourceForge
Re: Subform & hash cookies
People,
Are you still having problems?
The max_input_vars problem should be fixed.
Steven
Are you still having problems?
The max_input_vars problem should be fixed.
Steven
-
- Posts: 33
- Joined: Sat Jun 09, 2018 4:36 pm
- Location: Netherlands
- Has thanked: 4 times
- Been thanked: 1 time
- Contact:
Re: Subform & hash cookies
No, after changing max_input_vars it's OK.admin wrote:People,
Are you still having problems?
The max_input_vars problem should be fixed.
Steven