This event is executed whenever breaks occur, regardless of the break level, and allows the manipulation of the totalization fields.

Scriptcase makes all the totalization variables available in the scope of the Grid.

onGroupBy  is only executed when the Query application has one or more Breaks configured.


Eg:

Assuming an application that has two levels of state and city break and that totals two parcel and balance fields, we can have access to the totals, in the scope of "calculating each record", as follows:

Considering that the formulas, defined to be processed in the scope of "calculate during the groupings" will be acting for the various grouping levels, the special sum variables, in this scope, are referenced substituting the grouping name by the word key "grouping", or either: