Author |
Message |
19/06/2009 15:10:13
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I have a request concerning calendar field. Lets look at it in the demo workplace:
1. Start the workpage "Date Input"
2. Popup the calendar with hours and minutes
3. choose a day
--> Hours and minutes are initialized with current time
How can I avoid this initialization? I our business case, it isn't meaningful. We would like to initialize with 00:00.
Regards,
Daniel
|
|
|
19/06/2009 15:25:21
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...yes, the problem is that there is not proper definition of a "date" with java.util.Date. But, I agree, most developers interpret "00:00" point of time as the one that is relvant for the date.
We will add an attribute EXACTTIME to the CALENDAR, CALENDARFIELD, FORMATTEDFIELD that sets all the "ugly" date-parts to 0 when the user selects a date.
Will be contained in next update.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/06/2009 15:11:33
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
solved with 20090622
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
23/06/2009 10:26:30
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi,
I have installed 20090622. It seems to me that "exacttime" works for calendar but not for calendarfield. I have tried it out on my application and also on demo workplace (by modifying democalendar.jsp). For formattedfield I didn't check.
Regards, Daniel
|
|
|
23/06/2009 11:32:54
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...after short phone call: the exacttime-attribute works correctly. In addition to internally cutting the invisible date parts there is the requirement to propose e.g. hours/minutes/seconds with "0" when selcting a point of time.
We can add this, as well - and will bind this proposal to the same flag "exacttime".
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
08/01/2019 12:53:56
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
When popping up the calendar with time in the "Date Input" page of the demo workplace (RISC), the time is initialized with the current time instead of zero, although the attribute "exacttime" is set to true. See attachment.
For the java version of demo workplace, the behaviour is still initializing time with zero as desired and implemented long time ago (this thread started 2009, time flies quickly...).
Could you please fix the RISC version?
Kind regards, Daniel
|
Filename |
calendar_popup_time.png |
Download
|
Description |
RISC: Time is initialized with current time instead of zero. |
Filesize |
16 Kbytes
|
Downloaded: |
309 time(s) |
|
|
|
08/01/2019 16:15:05
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi David,
will update this for next update.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|