Sunday, March 26, 2017

Groovy Expressions

## if you want to display department name create transient attribute and then use below grrovy expression at VO level.

if(DepartmentId !=null && departmentViewAccessor.first()!=null) { departmentViewAccessor.first().getAttribute("DepartmentName"); }


DepartmentId -- attribute Name
departmentViewAccessor -- view accessorr name
if we edit view accessor passing DepartmentId value to it as a parameter.


#{bindings.NoOfEmployee.inputValue==0}" to diasble

LovAccessorName.count("KeyAttributeName")  -- gives count of VC filtered rows

No comments:

Post a Comment