Modifying Device Designs › Editing Report Designs › Example 2: Extended Report Design › Function Fields
Function Fields
To accumulate the order value, do the following:
- Define a USR field, Detail Line Order Value, based on the Order Value field on the Customer’s Orders PRTOBJ function.
- Attach this field to the Detail line format of the PRTFIL function, and hide it.
- 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.
- Define a SUM function field Accumulated Order Value based on the Order Value field.
- Add this SUM field to the Area, Country, and Final Total formats, supplying appropriate parameters.