Totalling

Totalling is a facility for automatically maintaining derived field values. When a field is updated as a result of totalling it will be updated on screen automatically provided that the QA Build compiler can determine the appropriate map and field number to use.

You can total from a source field into a target field using one of three methods:

Update and downdate totalling work appropriately to maintain the total correctly depending on how records are being processed: for example the initial value is always 0 for a new record (so the change is simply the final value), and when a record is deleted update totalling subtracts the initial value from the total rather than adding the changed value.

You may wish to set up local variables for displaying totalling results (such as subtotals). If you use a local field, initialise the value in an earlier procedure before the field is used for totalling.

There are various items that you may specify for the processing of a totalling field:

Using Totalling for a field

  1. On the Field Editing screen add the required source field to the list of fields to be processed
  2. Select the Totalling option for the source field
  3. Select the type of totalling, and name the target field
  4. Add any conditions for the totalling field