Hi
I have a Time field in a Browse/Edit form. When I add a new record, the time field displays correctly and I can enter a time e.g. 13:00
And it loos fine in the Edit form
In the Browse form it displays as 13:00:00
I don't want to show the seconds so I edited the Browse form properties - Time column - Format and added my custom format: hh:nn
Now the Browse screen doesn't display the Time at all - just a null/blank field
Just confused how to get the time to display as hh:nn in the Browse form
Thanks for any help
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Display formats
-
- nuBuilder Team
- Posts: 4566
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 531 times
- Contact:
-
- Posts: 12
- Joined: Mon Nov 15, 2021 11:11 pm
Re: Display formats
kev1n wrote:What data type is the time column in the database?
in the database the column data type is 'time'
-
- nuBuilder Team
- Posts: 4566
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 531 times
- Contact:
Re: Display formats
Use TIME_FORMAT() to format the time.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 12
- Joined: Mon Nov 15, 2021 11:11 pm
Re: Display formats
Thanks Kevin!
I added a %: in the middle to format correctly. I now understand the SQL time formats H, h, I, i.
I'm just curious about why the system doesn't use the format I created for the Edit form - hh:nn ?
It's working anyway - so thank you!
I added a %: in the middle to format correctly. I now understand the SQL time formats H, h, I, i.
I'm just curious about why the system doesn't use the format I created for the Edit form - hh:nn ?
It's working anyway - so thank you!
-
- nuBuilder Team
- Posts: 4566
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 531 times
- Contact:
Re: Display formats
Can you try this updated nuformclass.js ? Replace the existing one in the /core folder and log in again.
Update: This Patch is now included.
Update: This Patch is now included.
You do not have the required permissions to view the files attached to this post.