Issue 100229 - In a date field (with no default date registered) in a form, the current date isn't displayed
Summary: In a date field (with no default date registered) in a form, the current date...
Status: UNCONFIRMED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 3.0.1
Hardware: PC Windows Vista
: P3 Trivial with 4 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-16 12:57 UTC by thierrym
Modified: 2013-02-07 22:36 UTC (History)
2 users (show)

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


Attachments
A database with a form based on a table, where there is a date field which should display the current date (10.63 KB, application/vnd.sun.xml.base)
2009-03-16 13:00 UTC, thierrym
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description thierrym 2009-03-16 12:57:09 UTC
When I use a datefield in a form based on a table, I can't have the current date
displayed by default. For this datefield, I leave blank the propertie "Default
Date". I think it's a regression.
It's impossible to write for this properties a string like "Today()" : perhaps
it could be an improvement.
Comment 1 thierrym 2009-03-16 13:00:42 UTC
Created attachment 60947 [details]
A database with a form based on a table,  where there is a date field which should display the current date
Comment 2 drewjensen.inbox 2009-07-11 04:26:23 UTC
This is not a regression - rather is by design. Date controls did at one time
default to the current date, however due to user requests, this was removed.

You have two choices now: 
1 - you can call a macro to fill the date control w/ the current date.
2 - you can set the default for CURRENT_DATE at the column in the databse
engine. (this requires the use a SQL command from within the SQL window in Base)
Using this solution will mean though that the date will not be displayed in the
GUI unitl AFTER the record has been posted to the database.

@thierrym - With regards to this Issue then - As a defect I would call this
INVALID but if you prefer (and I would suggest)..

Remove the keyword regresson. (actually I'll do that now)
Change it from defect to enhancement asking for an option to be added to the
date control.
Comment 3 thierrym 2009-11-22 23:37:08 UTC
@atjensen,
Sorry for the lag...
I changed the issue type for Enhancement