OBEROn - Bug Trace - Oberon Platform
Viewing Issue Advanced Details
77 Platform functionalities feature have not tried 2012-08-13 04:30 2012-08-13 16:08
g_prajeesh  
administrator  
normal  
resolved 2.6 - DB build 0065  
fixed  
none    
none 3.0 - DB build 0067  
0000077: Need a function to specify Today as default value for Date Type Field
Need a way to specify "Today" as default value for Date Type Field
Issue History
2012-08-13 04:30 g_prajeesh New Issue
2012-08-13 11:39 administrator Assigned To => administrator
2012-08-13 11:39 administrator Status new => assigned
2012-08-13 11:39 administrator Target Version => 2.7 build 0067
2012-08-13 16:08 administrator Note Added: 0000149
2012-08-13 16:08 administrator Status assigned => resolved
2012-08-13 16:08 administrator Fixed in Version => 2.7 build 0067
2012-08-13 16:08 administrator Resolution open => fixed
2012-08-13 16:09 administrator Note Edited: 0000149

Notes
(0000149)
administrator   
2012-08-13 16:08   
(edited on: 2012-08-13 16:09)
Added new keyword for field dafault (valid only for DATE and DATETIME)

field define <FieldName> type datetime default today;
field edit <FieldName> default today ;

If the default is "today", when an new instance of Link / Object is generated, the value for the field is replaced with the current date or date-time

Added also the setDefaultAsToday() method in the Field class