Monday 7 October 2013

ADF CheatSheet: VO Attribute value

ADF CheatSheet: VO Attribute value

One thing I also do alot for auditing is setting Attributes to who created it or when it was created for those.

To see who edited something, or to set a value to an Attribute that is stored in a Session Variable you can use the code below in order to set the default value to that attribute.

adf.context.current.sessionScope.get('empId')
For Date
adf.currentDate
For Date and Time
adf.currentDateTime
Just one thing, make sure you set the sessionScope variable to the same Object type as the Attribute.
#bearMan

No comments:

Post a Comment