Welcome to the nuBuilder Forums!

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

Subform not saved on a new registration

Questions related to using nuBuilder Forte.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: Subform not saved on a new registration

Unread post by johan »

Ok thanks
Must every primary key be varchar(25)?
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform not saved on a new registration

Unread post by kev1n »

Just for subforms.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: Subform not saved on a new registration

Unread post by johan »

Kev1n
Just tested this.
I've changed my primary key of table bron into varchar(25)
Screenshot 2023-05-06 16.20.02.png
Result is almost the same. Before change of primary key my editform closed and returns to browsform, now the editform stays open but the values in subform are empty again.

Johan
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform not saved on a new registration

Unread post by kev1n »

Did you log in again afterwards?
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: Subform not saved on a new registration

Unread post by johan »

Yes I did. Even used another browser.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform not saved on a new registration

Unread post by kev1n »

Could you export your form and tables once again?
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: Subform not saved on a new registration

Unread post by johan »

Kev1n
I've dumped the form and SQL again.
Thanks
Johan
Archive.zip
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform not saved on a new registration

Unread post by kev1n »

Also change this id to varchar(25):

Code: Select all

ALTER TABLE `contracten` CHANGE `re_id` `re_id` VARCHAR(25) NOT NULL;
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: Subform not saved on a new registration

Unread post by johan »

Kev1n
This solved it.
Thanks for your help.
Johan
Post Reply