Sample Groovy Aggregate functions: sum, count, min, max and avg
Syntax: ViewAccessor.function(attribute)
1.Create VO
2.Create Accessor for VO as shown in below screen.
3.Create Transient attribute and set properties as shown in below screen. Set expression on view accessor we have created on above screen.
Expression: TestGroovy.max("Sal")
Syntax: ViewAccessor.function(attribute)
1.Create VO
2.Create Accessor for VO as shown in below screen.
3.Create Transient attribute and set properties as shown in below screen. Set expression on view accessor we have created on above screen.
Expression: TestGroovy.max("Sal")