Author |
Message |
17/05/2013 15:27:42
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi,
is it possible to improve the error message when the date range is violated?
Now there is either a popup with a neutral text like "Incorrect date range" (or something like that),
or the field is marked red without the user knowing why.
It would be nice if the valid date range is displayed to the user.
Best regards
Frauke
|
|
|
17/05/2013 15:37:33
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi,
something else:
It seems that the validation does not work correctly if, for instance, the fromDate = null and toDate = new Date().
The date range inside the control is grayed correctly but when I select a valid date, the field is still marked red.
Best regards
Frauke
|
|
|
21/05/2013 07:59:51
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5520
Offline
|
Hi,
you have to both specify from and to in order to properly set the time range.
The text message is "The date is not in the from/to range that is defined and was reset to its previous value." ...because these messages were checked by some native English speaker I do not really want to change it...
Bringing in the from/to in the message is a good idea...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
03/06/2013 08:46:51
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi,
thats to bad I can not specify a time range with null dates.
We really need ranges like "older that..." or "newer than...".
No way to convince you?
Best regards
Frauke
|
|
|
03/06/2013 09:00:39
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5520
Offline
|
This is not an issue of "convincing"! ;-)
I just explained the way the control works.
What's the problem of adding something like...
Code:
public Date getFromDate()
{
if (m_fromDate == null) return new Date(Long.MIN_VALUE);
else return m_fromDate;
}
...?
Just want to check if there is something "under the cover" which I do not understand yet...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
03/06/2013 13:28:22
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Ok, that will do...
but still I think there is a validation problem:
If I select a date that is outside the date range (by pressing the today button) the error message appears and the field is marked red.
But whatever valid date I select afterwards, the date field remains marked red.
Best regards
Frauke
|
|
|
|