Previous Topic: Parameters to PRTOBJ Functions

Next Topic: Overall Report Design

Function Fields

To accumulate the order value, do the following:

  1. Define a USR field, Detail Line Order Value, based on the Order Value field on the Customer’s Orders PRTOBJ function.
  2. Attach this field to the Detail line format of the PRTFIL function, and hide it.
  3. In the action diagram for the PRTFIL function, specify that the output parameter Total Order Value from the PRTOBJ function be moved into this USR field.
  4. Define a SUM function field Accumulated Order Value based on the Order Value field.
  5. Add this SUM field to the Area, Country, and Final Total formats, supplying appropriate parameters.