Issue 6544 - [RFE] for date and time field controls in forms, allow for _real_ NULL defaults
Summary: [RFE] for date and time field controls in forms, allow for _real_ NULL defaults
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: OOo 2.2
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
: 12921 50085 (view as issue list)
Depends on:
Blocks:
 
Reported: 2002-07-24 17:53 UTC by Frank Schönheit
Modified: 2007-02-19 10:06 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2002-07-24 17:53:06 UTC
Currently, date and time controls can get a default value, which is used for
initially displaying such a control, and for resetting it (e.g. on a new record
in a form).
However, both controls handle a NULL default somewhat strange: They use the
current system date resp. time in such a case. The reason for this is HTML
compatibility.

We should add an option to these controls to allow for real NULL defaults, as
the current behaviour is often irritating users, and subject to change requests.
Comment 1 Frank Schönheit 2002-07-24 17:53:41 UTC
grabbing for myself
Comment 2 Frank Schönheit 2002-07-24 17:53:56 UTC
accepting
Comment 3 Frank Schönheit 2002-09-25 14:30:56 UTC
adding "needhelp" keyword - perhaps external developers do want to
have a look at this?

Comment 4 Frank Schönheit 2002-12-11 14:53:27 UTC
targeting for OOo 2.0
Comment 5 Frank Schönheit 2003-04-01 15:14:07 UTC
*** Issue 12921 has been marked as a duplicate of this issue. ***
Comment 6 phillg 2003-04-01 15:25:31 UTC
Inserted the word 'field' into Summary so as to bring it up in more
searches and avoid further duplicates.  Unfortunately I'm not a
prgrammer :-(

P h i l l
Comment 7 phillg 2003-04-01 15:56:21 UTC
Inserted the word 'field' into Summary so as to bring it up in more
searches and avoid further duplicates.  Unfortunately I'm not a
prgrammer :-(

P h i l l
Comment 8 marc.neumann 2003-09-25 14:11:52 UTC
"According to the OpenOffice.org roadmap
(http://tools.openoffice.org/releases) this issue was retargeted to
OOo Later."
Comment 9 hans_werner67 2004-02-02 13:04:45 UTC
change subcomponent to 'none'
Comment 10 kelvine 2004-04-29 02:13:16 UTC
Added myself to CC.
Comment 11 Frank Schönheit 2005-06-10 13:37:45 UTC
*** Issue 50085 has been marked as a duplicate of this issue. ***
Comment 12 wizhippo 2006-02-24 04:28:43 UTC
When using postgresql 8.1 jdbc i get openoffice 2.0.2rc3 

when using formated text field i get

SQL Status: 42804

ERROR: column "birthdate" is of type date but expression is of type character
varying

I can enter a date then save the record, then erase the date and save the record
and it works with no error.  it seam like oo is not casting to the right type.

it seams like the formated text field is changing null to something else.

works fine with regular text fields
Comment 13 Frank Schönheit 2006-06-02 15:18:49 UTC
fixed in CWS dba204a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Fdba204a
Comment 14 Frank Schönheit 2006-07-06 10:01:11 UTC
targeting to 2.0.4
Comment 15 Frank Schönheit 2006-07-11 15:57:31 UTC
fs-> msc: please verify in CWS dba204a

Note: the issue is fixed in a way that the senseless "today" and "now" defaults
are removed without substitute.
Comment 16 marc.neumann 2006-07-13 08:59:08 UTC
verified in CWS dba204a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Fdba204a
Comment 17 marc.neumann 2006-08-31 13:11:39 UTC
Hi,

this is fixed in the current master. The current master is available at
http://download.openoffice.org/680/index.html

I close this issue now.

Bye Marc
Comment 18 andreschnabel 2006-10-18 23:35:29 UTC
reopened, as date fields in a grid control still have the default "today" (and
it is not possible to enter Null values)
Comment 19 andreschnabel 2006-10-18 23:37:03 UTC
reassigned
Comment 20 Frank Schönheit 2006-10-19 06:56:03 UTC
accepting
Comment 21 Frank Schönheit 2006-10-25 20:19:43 UTC
well, it actually "defaults" to the last value which you previously encountered
in this column, or today/now if you did not yet encounter a NULL value.

Fixed in CWS dba22a.
Comment 22 Frank Schönheit 2006-11-27 11:01:11 UTC
fs-> msc: please verify in CWS dba22a
Comment 23 Frank Schönheit 2006-11-27 12:46:38 UTC
targeting to 2.2, since the fix is part of a CWS aiming for this release
Comment 24 marc.neumann 2006-11-29 12:47:42 UTC
verified in CWS dba22a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=SRC680%2Fdba22a
Comment 25 andreschnabel 2007-02-19 10:06:34 UTC
ok in OOo2.2RC1 -> closed