Time Picker

Questions and answers for designing and implementing forms in Servoy

Time Picker

Postby DFehrenbach » Tue Feb 10, 2004 9:07 pm

Does anyone know of a bean or plug-in that will include a time picker with a calendar? I need a simple method for entering dates and times.
DFehrenbach
 
Posts: 252
Joined: Sat Sep 13, 2003 6:48 pm
Location: Cleveland, OH

Postby IT2Be » Tue Feb 10, 2004 9:37 pm

I have searched the web intensively for spinners that we can use. At least I didn't like it.

Servoy put my request for a data and/or time spinner on the list.
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby jcompagner » Tue Feb 10, 2004 10:57 pm

if you have a time portion in the format of the calendar field 2.0RC5 will now add a textfield for the time portion so that you can edit the time..

For now it is a simple edit field.. It is not as fancy yet as the time chooser of the windows clock (that you can spin through hour:minute fields..
This will improve in the further..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8868
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby DFehrenbach » Wed Feb 11, 2004 12:14 am

Thanks. I'm looking forward to the new release.
DFehrenbach
 
Posts: 252
Joined: Sat Sep 13, 2003 6:48 pm
Location: Cleveland, OH

Re: Time Picker

Postby rossent » Fri Mar 22, 2013 10:49 am

We do need also a dedicated Time Picker field - in many scheduling cases there is a need to display and edit only times and no dates. The Calendar popup has not been updated in a long time. In the Web Client it is even worse - the time edit always uses 0-23 hour clock regardless the format given. Ideally, there should be a separate UI control for editing times (with the appropriate validation!) which is not tied in to the Calendar popup.
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Time Picker

Postby ROCLASI » Fri Mar 22, 2013 11:00 am

Hi Rossen,

I guess something like this could be built into the JSDatePicker module.
Or do you *require* that it's all done in/on the field on the form ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Time Picker

Postby mboegem » Fri Mar 22, 2013 12:06 pm

Hi Rossen,

why kicking a 9yr old thread up for this?

I think there's multiple ways to have easy time entry now.

Just put up a date field and set the format to 'HH:mm|HHmm'
Users will see a nice time portion: '13:45', but will be able to enter it as '1345'

Another nice formatting is: 'HH:mm|_|mask'
Users will see the same as above, but if empty, the field will show '__:__' and again users will be able to enter like '1345'

be sure to tick the checkbox of the 'selectOnEnter' property of the field.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1800
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Time Picker

Postby rossent » Fri Mar 22, 2013 12:20 pm

ROCLASI wrote:Hi Rossen,

I guess something like this could be built into the JSDatePicker module.
Or do you *require* that it's all done in/on the field on the form ?


The goal is to have everything done in the field on the form without any additional popups
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Time Picker

Postby rossent » Fri Mar 22, 2013 12:28 pm

mboegem wrote:Hi Rossen,

why kicking a 9yr old thread up for this?

I think there's multiple ways to have easy time entry now.

Just put up a date field and set the format to 'HH:mm|HHmm'
Users will see a nice time portion: '13:45', but will be able to enter it as '1345'

Another nice formatting is: 'HH:mm|_|mask'
Users will see the same as above, but if empty, the field will show '__:__' and again users will be able to enter like '1345'

be sure to tick the checkbox of the 'selectOnEnter' property of the field.


This is exactly what we have currently - using the CALENDAR type field (to validate the input) with a format which includes only the time part - however the Calendar button is still present and cannot be removed/disabled, so users can still click it... and then start asking questions like: "why there is a calendar on a time field? what date should we select? why the time editor in the calendar does not use the correct format (in the case of the Web Client)?"
We tried doing things like putting two separate SPINNER fields to represent separately the hours and minutes, but those cannot be bound directly to the datetime dataproviders/columns and need to be manually handled in both directions (setting and getting the hours/minutes) - that in my opinion should be handled "out-of-the-box" with the appropriate UI control from Servoy which after 9 years is still missing in their toolbox. (this explains why I chose to "kick" this old thread)

In short, what we need is this: a new standard Servoy UI control which can be bound to a datetime dataprovider (like the CALENDAR) but which displays and manipulates only the time portion of the datetime value (utilizing a format similar to what the CALENDAR field is doing) - it does not need to have any button like the CALENDAR, but if it does, the popup should contain only time-relevant information (like hours, minutes, seconds, etc. and options to set the value to the current time, increment/decrement the different time parts, etc.)

In my opinion, this is quite simple to be implement for Servoy, is a standard part of all other major development platforms, is supported on all clients (Smart, Web, Mobile) and is a functionality which most users expect in any scheduling or other business application which has to deal with times.
Last edited by rossent on Fri Mar 22, 2013 12:39 pm, edited 1 time in total.
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Time Picker

Postby mboegem » Fri Mar 22, 2013 12:37 pm

rossent wrote:This is exactly what we have currently - using the CALENDAR type field (to validate the input) with a format which includes only the time part - however the Calendar button is still present and cannot be removed/disabled, so users can still click it... and then start asking questions like: "why there is a calendar on a time field? what date should we select?


Just use a type: 'TEXTFIELD' for it.
No need for a calendar type field at all...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1800
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Time Picker

Postby rossent » Fri Mar 22, 2013 3:41 pm

mboegem wrote:
rossent wrote:This is exactly what we have currently - using the CALENDAR type field (to validate the input) with a format which includes only the time part - however the Calendar button is still present and cannot be removed/disabled, so users can still click it... and then start asking questions like: "why there is a calendar on a time field? what date should we select?


Just use a type: 'TEXTFIELD' for it.
No need for a calendar type field at all...


The TEXTFIELD is a possible workaround but is far from a perfect solution. The formats of type "hh:mm aa|hhmmaa" allow the users to type in anything they want without restricting the input only to the applicable digits or am/pm and then they get stuck with the "red" data wondering what is wrong; the formats of type "hh:mm aa|_|mask" behave a little bit better because they do limit the input a bit (allow only digits for the hours/minutes but in the am/pm place users can still enter any character they want) but users still must enter am/pm instead of selecting this from a list which is not very intuitive when all they see in the blank field is "__:__ __". In addition, there is no way to increment/decrement the hours/minutes/etc. with the keyboard (by using up/down arrows like you can in the CALENDAR).

I hope that you would agree that there is quite a bit room for improvement. Just check out what the vendors of the leading UI components offer and compare them with the UI controls in Servoy. After all, it is 21st century and users expect a lot more from professional applications - so do developers from their development platform vendors.
Rossen Totev
Argos Software
rossent
 
Posts: 288
Joined: Wed Dec 31, 2008 2:03 pm

Re: Time Picker

Postby ROCLASI » Fri Mar 22, 2013 6:08 pm

Hi Rossen,

I suggest you file this as feature request in Jira.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 3 guests

cron