Calculation Grid Keys Logic
Since version 10.0
Calculation Grid Keys logic is used when you need to:
Provide values (generate keys) for key# fields for items when developing a calculation grid. Calculation grid has several ways to retrieve a list of key combinations and this is only one of them.
Logic API
Logic Nature: CALCULATION_GRID_KEYS
Logic Type: Calculation/Pricing
Execution Types:
Input Generation (since 12.0) – Defines input fields for the keys logic. Those inputs will be shown in the calculation grid configuration wizard, after selecting the Grid Keys logic.
Standard – Calculates the values for key fields.
Information provided to the logic:
In the Input Generation mode:
No special info available here
In the Standard mode:
input[]
– Values of input fields, provided by the user in the configuration of the calculation grid.
Expected logic execution outcome:
From Input Generation mode:
Input field definitions placed in the logic context.
From Standard mode execution:
One element must return a List of key combinations. A key combination is represented by a List of key values, e.g.
[key1Value, key2Value, key3Value]
.This element must be the selected during setup of the calculation grid.
Results of all other elements will be ignored.
Code Sample
Sample code to demonstrate the structure of expected returned value
return [
["key1.1", "key1.2"],
["key2.1", "key2.2"],
["key3.1", "key3.2"],
["key4.1", "key4.2"],
["key5.1", "key5.2"],
["key6.1", "key6.2"]
]
Found an issue in documentation? Write to us.
Â