Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Friday, July 24, 2009

current date time groovy for ADF

We mostly have created_date or updated_dated column in our data model. The value for these columns is mostly
the currentt date (time truncated) or current date and time. To default such values every time you create a row in VO/EO there
is excellent support for groovy expressions in ADF.

To do so go to your VO/EO .xml file. In overview mode select attributes tab. In that select the attribute you want to default with
current system date-time or date. In the value box type one of the below and choose radio as expression.

Only date: adf. currentDate
Date with Time: adf.currentDateTime

No comments: