![]() |
|
|
|
All Grids in Alventis support Dynamic Grid Summaries. Such Summaries can calculate some useful total/subtotal values for the columns they are attached to, such as: Count of records, Sum, Average, Min, Max of the column's values.
There are two kinds of Summaries:
Grid Footer Summaries are located at the very bottom of the grid and are calculated for the entire grid.
Grid Group Summaries are located at the bottom of their respective grouping level and are calculated only for the records within that grouping level.
In Alventis, you can create/modify/delete all such Grid Summaries whenever you wish, which is why we call them Dynamic. You may have already seen how this Summary manipulation works in Reports. You should be aware of the fact that while providing mostly the same end result, the way it works is different between Reports and the rest of Alventis. We will be only discussing here how it works everywhere in Alventis – except the Reports, which have their own chapter dedicated to them.
This creates the first of possible Summary types using the first mathematical operation applicable to the data type of the column. Since all data types support at the very least counting their records, the first Summary type will always be Count, which is displayed as simply a number. If Count is not what you want, just double-click the Summary again, and the function will change to the next available, if any. So, double-clicking simply cycles through all possible Summary types in the following fashion: None – Count – Sum – Average – Min – Max If you keep double-clicking after the last summary type, it wraps around and starts again at the beginning. Shift-double-clicking cycles in the opposite direction. Functions that are inappropriate for the selected column's data type are simply skipped, so for a string column, you'd only have None – Count to cycle through.
Hiding Summary lines that contain some Summaries does not remove the latter, so you can temporarily hide them and then get your entire Summary line back intact with all its totals and averages.
For most grids, Alventis will preserve the Summary setup even if you close and re-open the form. The Dynamic Summaries are not shared between multiple users, if any: the Summaries you create are only visible to you, so you can set them up whichever way you want without worrying about your colleagues not liking your setup. |