Previous Topic: RCDNext Topic: NXT


CUR

The Current Report Format (CUR) context contains all of the fields that are in a report format of a Print File or Print Object function.

The report functions have header and total formats for each key level in the based-on access path, except for the lowest level key, as well as a final total format. For example, an access path with three key fields, would have three total formats:

      Headings for level 1 (1HD)
        Headings for level 2 (2HD)
          Detail record, level 3 (RCD)
        Totals for level 2 (3TL)
      Totals for level 1 (4TL)
    Final totals (ZTL)

The detail record format contains all of the fields from the based-on access path while the heading and total formats for each level contain the key field for that level and any associated virtual fields. These fields are available in the action diagram where the processing for a particular format occurs in the CUR context. In addition, any function fields that you have added to the report format are available in the CUR context.

The CUR context differs from the NXT context in that the NXT context contains fields that are present in the report format representing the next level break in the report. The CUR context specifies fields that are being processed at a given point in the action diagram while the NXT context specifies fields being processed in the following format.

The CUR context is only available in the action diagrams of the following function types:

For example, in a report to print out an Order, if Order Qty and Product Price are fields present on the access path to which the Print File function is attached and Order Line Val is a function field attached to the Detail Record (RCD) format, the following processing might be inserted in the action diagram at the point where detail records are processed:

> USER: Process detail record .-- : CUR.Order line val = CUR.Order qty * CUR. Product price ‘--