Hi,
I have a subform that deletable='NO'
Everytime I save it creates empty record.
If I turn deletable='yes' this does not happen.
How can I solve this problem?
Thank You.
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: empty records
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: Subform: empty records
Rui,
are you saying that when you save the main form, without subform records, nuBuilder creates an empty subform record?
And what happen if you insert a new record in subform? Are the subform records correctly saved? Are the subform records linked properly with main table?
I've made some tests with my subform and this don't happen...
Here my settings (main table: repair; sub-table: repair_job)
Max
are you saying that when you save the main form, without subform records, nuBuilder creates an empty subform record?
And what happen if you insert a new record in subform? Are the subform records correctly saved? Are the subform records linked properly with main table?
I've made some tests with my subform and this don't happen...
Here my settings (main table: repair; sub-table: repair_job)
Max
You do not have the required permissions to view the files attached to this post.
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
Re: Subform: empty records
Hi Massiws,
Yes, it creates empty records.
The new record is correctly saved in the database.
Please see attached pictures. It seems the number of empty records = subforms Blank Rows settings. Thank you.
BR
Rui
Yes, it creates empty records.
The new record is correctly saved in the database.
Please see attached pictures. It seems the number of empty records = subforms Blank Rows settings. Thank you.
BR
Rui
You do not have the required permissions to view the files attached to this post.
BR
Rui
Rui
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm
Re: Subform: empty records
Hi Massiws,
I just notice that if I delete the record from the main form the records of the subform remains in the database.
Any idea on this issue?
I just notice that if I delete the record from the main form the records of the subform remains in the database.
Any idea on this issue?
BR
Rui
Rui
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: Subform: empty records
Rui,
I checked better: you are right, sorry!
It's seems that nuBuilder creates so many empty records as the number in Blank Rows field: setting Deletable=Yes the problem don't appear.
I read and follow this post, about the same problem: http://forums.nubuilder.cloud/viewtopic.php?f=4&t=7609, but also rewriting the SQL in subform like example in the post, I can't be able to solve.
With Deletable=No, the only workaround I found is set Blank Rows=1.
Here another solution: http://forums.nubuilder.cloud/viewtopic.php?f=6&t=7606
Max
I checked better: you are right, sorry!

It's seems that nuBuilder creates so many empty records as the number in Blank Rows field: setting Deletable=Yes the problem don't appear.
I read and follow this post, about the same problem: http://forums.nubuilder.cloud/viewtopic.php?f=4&t=7609, but also rewriting the SQL in subform like example in the post, I can't be able to solve.
With Deletable=No, the only workaround I found is set Blank Rows=1.
Here another solution: http://forums.nubuilder.cloud/viewtopic.php?f=6&t=7606
This can be done using the #id# hash variable and custom PHP code in AfterSave tab.ruiascensao wrote:I just notice that if I delete the record from the main form the records of the subform remains in the database.
Any idea on this issue?
Max
-
- Posts: 177
- Joined: Tue Nov 15, 2011 2:24 pm