This event is triggered every time the aggregation function of a QueryElement is changed.
&AggregationChangedData.{ Aggregation | Name }
When the event is triggered, its parameters are queried in the "AggregationChangedData" property. It returns an SDT with the following data:
- Name. Name of the element in which aggregation has been changed.
- Aggregation. Is the selected aggregation. Possible operations are Sum, Average, Quantity, Minimum and Maximum.
In this example, the names of the aggregation that has been changed and of the new one are displayed on screen.
Event QueryClients.AggregationChanged
Msg("Changed aggregation of the field: " + &AggregationChangedData.Name + " to a new aggregation: " + &AggregationChangedData.Aggregation)
EndEvent