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
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:
api.currentItem() – Provides a price grid or price list represented as Map. Note that it also contains the input fields from the header, in a field configuration (see Price List Header Parameters with Header info).
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
Build input field definitions.
Calculate summaries.
Build a chart.
Set up a header result chart.
Set up header result values.
Code Sample
Found an issue in documentation? Write to us.
Â