agSum( ) example
Suppose you’re tracking overtime hours, grouped by employee. You display the average in an Text component in the group’s footerBand. The text of the Text component is an expression codeblock that calls the agSum( ) method:
{||this.parent.parent.agSum({||this.parent.rowset.fields[ "Overtime" ].value})}
To get to the Group object’s agSum( ) method from a component in the footerBand,
this is the component.
The component’s parent is the footerBand.
The footerBand’s parent is the Group.
The expression codeblock that is passed to agSum( ) also uses dot operators:
this is the Group object that performs the calculation.
The Group object’s parent is the StreamSource.
The StreamSource object contains the rowset.