Painful InputMasks

penfold1992

Registered User.
Local time
Today, 10:02
Joined
Nov 22, 2012
Messages
169
I have a field that requires a full date including a time stamp.
ie. 05/12/12 14:20
the Input Mask i have used is:
00/00/00\ 00:00;0;_

There are a few issues I have with it...

firstly, when I try to change the value (after I have de-selected from the cell once already) by for example... changing the above date to:
06/12/12 14:20
by putting my cursor after "5" pressing backspace and then entering 6...
I get a error "The value you entered isn't appropriate for the input mask '00/00/00\ 00:00;00_' specified for this field.

why does it say this when the input is conforming to the input mask?
 
Put blank i INPUT MASK properties, and put
NOW in DEFAULT VALUE properties.
For that field i the table DATA TYPE put DATE/TIME,
in Format properties put GENERAL DATE.
 
Last edited:
The value of the field isnt "now" its whatever the user records... the times and dates are not just the time and date now (it doesnt fill the box with anything anyway)

but this doesnt give an input mask so you are still relying on people to keep the same date format... the Input mask is still a better option then just leaving it as a free form date in terms of consistancy.

its just that there are some annoying issues with it... the input mask works but not all the time.

I think its because it "adds" the seconds when you enter the value.

If you could "remove" the seconds when you are on edit... that would fix it
 
yes... but the date picker isnt as good if you also need to type in a time too.
the users get given a date which they must enter (they use the date and time stamps of an email as reference)
In this situation to type in 06/12/12 2:51
the user just types 061212251 the / and " " is automatic.

the simple answer seems to be "this is why input masks suck" and "this is why input masks can be useful"
 
yes... but the date picker isnt as good if you also need to type in a time too.
the users get given a date which they must enter (they use the date and time stamps of an email as reference)
In this situation to type in 06/12/12 2:51
the user just types 061212251 the / and " " is automatic.

the simple answer seems to be "this is why input masks suck" and "this is why input masks can be useful"
Personally, I like to separate Date and Time into two fields just to save myself from these types of complications. Not sure if that's an option for you?
 

Users who are viewing this thread

Back
Top Bottom