Calculation Grid Logic
Since version 10.0
Calculation Grid logic is used when you need to:
Calculate results for calculation grid items.
Logic API
Logic Nature: CALCULATION_GRID
Logic Type: Calculation/Pricing
Execution Types:
Input Generation (since 12.0) – Defines input fields for the calculation grid. Those inputs will be shown in the calculation grid configuration wizard, after selecting the logic. Note that those inputs are not for items, only for the whole calculation grid.
Standard – Calculates the results (e.g. prices) and provides warnings and alerts for each item.
Information provided to the logic:
In the Input Generation mode:
No special info available here
In the Standard mode:
input[]
– Values of all inputs provided by the user on the calculation grid configuration page.api.currentItem()
has content of CalculationGridItem in form of Map. You can read here information about key1..6.api.global
– Contains data placed toapi.global
by the previous execution of this logic for the another line (within one calculation grid calculation process).api.getBatchInfo()
api.getIterationNumber()
- info about second pass calculation
Expected logic execution outcome:
From Input Generation mode (from version 10.2):
Input field definitions
From Standard mode execution:
Result values (and formatting) of the visible logic elements (Display Mode is either Everywhere or CalculationGrid) will be copied by the system to the attributeX fields of the CalculationGridItem.
api.global
– Data stored here will persist until the next execution of this logic for another line (within one price grid calculation process within one node).
Found an issue in documentation? Write to us.
Â