Welcome to the nuBuilder Forums!

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

acces levels - forms not saving

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

acces levels - forms not saving

Unread post by johan »

Hi

When I try to add a new acces level (or clone one) the Forms tab is empty after I save it.

Any idea what's going wrong?

Johan
You do not have the required permissions to view the files attached to this post.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: acces levels - forms not saving

Unread post by johan »

Hi

Maybe this can help.

Code: Select all

===PDO MESSAGE=== 

SQLSTATE[HY000]: General error: 1364 Field 'slf_new_button' doesn't have a default value
===SQL=========== 
INSERT INTO zzzzsys_access_form         (zzzzsys_access_form_id, `slf_zzzzsys_access_id`, `slf_zzzzsys_form_id`, `slf_add_button`, `slf_print_button`, `slf_save_button`, `slf_clone_button`, `slf_delete_button`)  VALUES ('5faa5a96627fc0d', '5faa5a96623205d', '5af2b8cebbd6c6e', '1', '1', '1', '1', '1');

===BACK TRACE====

/var/www/html/straathoekwerk/nudata.php - line 320 (nuRunQuery)

/var/www/html/straathoekwerk/nuapi.php - line 50 (nuUpdateDatabase)
Johan
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: acces levels - forms not saving

Unread post by kev1n »

Hi,

Can you upload a screnshot of the table structure?
You do not have the required permissions to view the files attached to this post.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: acces levels - forms not saving

Unread post by johan »

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

Re: acces levels - forms not saving

Unread post by kev1n »

Please change all fields (but the primary key) to default NULL.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: acces levels - forms not saving

Unread post by johan »

Kevin

This solved it.
Thanks for your help.
Post Reply