Friday, March 8, 2013

Groovy Aggregate functions in VO Attributes

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")


Related Posts Plugin for WordPress, Blogger...