Welcome to the nuBuilder Forums!

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

Browse Tricks, Roster

Questions related to using nuBuilder Forte.
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Browse Tricks, Roster

Unread post by miasoft »

I get this error After save:

Code: Select all

[0] : 
===USER==========
globeadmin
===PDO MESSAGE=== 
SQLSTATE[HY000]: General error: 1364 Field 'ros_1' doesn't have a default value
===SQL=========== 
INSERT INTO roster  (roster_id, `ros_id`, `ros_house_id`, `ros_year`, `ros_month`)  VALUES ('6009a9eda51273c', '5dbf6c13333132220210', '5dbf6c133331322', '2021', '0');
If I set default value for 'ros_1' in db, then I get the same error for field 'ros_2' etc.
I think I must set default values for all 'ros_xx' in database.
Wbr, miasoft.
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: Browse Tricks, Roster

Unread post by nac »

I don't know the full structure of the roster table, but you could either set default values, as you suggest, or allow them to be NULL. At the moment, it looks as though ros_1 requires a value but you are not supplying one in your INSERT statement.
N
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Browse Tricks, Roster

Unread post by miasoft »

I see a small x in the search box (Roster ex.). But all my sites have not one
21.01_4.png
I can't find where this is done.

I'm tired of banging my head against the wall :(
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
nac
Posts: 115
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 12 times

Re: Browse Tricks, Roster

Unread post by nac »

I see a small x in the search box (Roster ex.).
I think this is an add-in that kev1n developed for nuBuilder 4 . See https://github.com/smalos/nuBuilder4-Co ... arch_field
It is now a standard feature in 4.5

Neil
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 447 times
Contact:

Re: Browse Tricks, Roster

Unread post by kev1n »

Neil is right. This x appears because the search field is now a HTML input type="search".

But I don't see how that is related to your initial question...
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: Browse Tricks, Roster

Unread post by miasoft »

nac wrote:
I see a small x in the search box (Roster ex.).
I think this is an add-in that kev1n developed for nuBuilder 4 . See https://github.com/smalos/nuBuilder4-Co ... arch_field
It is now a standard feature in 4.5
Neil
Thanks, Neil! Thanks, I updated everything to the newest version and now everything works!
kev1n wrote:Neil is right. This x appears because the search field is now a HTML input type="search".
But I don't see how that is related to your initial question...
Sorry, kevln. I thought I was in the subject
I try Roster-example and ...
Wbr, miasoft.
Post Reply