Something about defaulting date field values must be in the air as today the fourth person in two weeks sent me an email about "How can I default a Date field to SYSDATE in ADF Business Components?"
The answer is to use the declarative "History Attributes" feature of the entity object. It's described more in detail in my Oracle Magazine article Appreciating the Entity Object. In a nutshell, you mark your Date attribute as being a "History Attribute", and then set the history attribute type to "Created On" or "Updated On" depending on whether you want the date value to be filled in when the entity object is created
We also support automatically maintaining history attributes of type "Created By", "Updated By", and "Version Number". Viva declarative features!
12:17:41 PM
|