Friday, 17 July 2015

ADF – Assign value to bind Variable using Groovy Expression


In some cases, we need to assign default value to bind variable which can be another view object’s current row’s attribute value. We can do this using groovy expression.

Below is the groovy expression.

if (adf.object.applicationModule.findViewObject('<YourVO>').currentRow != null)


{ return adf.object.applicationModule.findViewObject('<YourVO>').currentRow.<nameofAttribute>}


Note: <nameofAttribute> is View Object's attribute name



Hope this will be useful

Ravi

No comments:

Post a Comment