In this blog I’ll show you how to use functions such as Sum, Avg and Count on the data you store in business objects in Visual Builder. While you don’t have direct way to write a sql statement to get this data, the ability to create object functions gives you access to similar functionality.
Object functions leverage groovy to interact with the business objects. I covered an intro to this topic in the blog entry about service methods for BOs, and we have a reference book that explains how to work with business objects and groovy. If you’ll look at this chapter in the book you’ll find out that there are many methods you can invoke on a viewObject – which maps to a BO. These include the ability to perform CRUD operations, add where and sort clauses to queries, and also to use group functions. Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.