Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:19:24 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

March 2006
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Feb   Apr

Get Firefox!

Friday, March 03, 2006

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    



© Copyright 2008 Steve Muench.