Current Date in ADF.

In adf a number of places you want to set the currentDate as a default parameter, you can use the groovy expression to set this.


Like for a bind parameter if you want to set the default value use the value option and set the currentDate from the adf.

In case if you want to set the value less then 10 days to current date you can use it adf.currentDate -10. This will give you date 10 days less then current date. If you want date and time both you can use adf.currentDateTime.

In some of the cases you may need to execute the custom methods defined in your entityImpl then you need to use adf.object for that. Like in the below case if a custom method has been coded in the entityImpl to get the default value like getDefaultDepartmentCode.
If you need to set the same for your variable you need to use it adf.object.getDefaultDepartmentCode




Comments

Popular posts from this blog

Executing a method bindings In Bean method.

Using Java Decompiler(JD) with Oracle Jdeveloper (Jdev)

Current Logged in User and Roles in ADF and Fusion Apps