Price List / Price Grid Header Logic

Price List Header logic is used when you need to:

  • Display a dashboard-like summary information at the top of the price list / price grid detail page, such as:

    • Inputs

    • Summary chart

    • Summary results

pricegrid detail page with header
Figure 1. Example of price grid dashboard-like header

Logic API

  • Logic Nature: coHeader

    • Logic Type: Calculation/Pricing

  • Execution Types:

    • Input Generation:

      • Defines the input fields,

      • but also calculates results and builds the summary chart.

The price list/grid header logic is always executed in the Input Generation mode, even for results calculation. As a consequence, some functions (e.g. api.stream()) do not work there.

  • Information provided to the logic:

  • Expected logic execution outcome:

    • The elements results are not used.

    • The logic can:

      • Build input field definitions (in the same way as a price list or quote item logic).

      • Create results, via a special function.

      • Create a chart, via a special function.

Specific Groovy API Functions

Common Logic Structure

  1. Build input field definitions.

  2. Calculate summaries.

  3. Build a chart.

  4. Set up a header result chart.

  5. Set up header result values.

Code Sample

Found an issue in documentation? Write to us.

Â