Modifying Device Designs › Editing Report Designs › Example 2: Extended Report Design › Order Function Fields
Order Function Fields
You make a further modification to the Print Customer Orders function to accumulate the total order value and print it. You can also return the total value so that it can be accumulated by area and country.
To do this:
- Define a SUM function field, Total Order Value, based on the Order Value field.
- Add this field to the Final Totals format, accepting the default parameters. All intermediate formats must be dropped.
- Specify the Total Order Value as an output parameter for the PRTOBJ function, so that the values can be summed into the Area, Country, and Final totals of the PRTFIL function.
- In the action diagram of the PRTOBJ function, move the calculated Total Order Value into the PAR context.