Editing modes
There are two editing modes for Calculations in Konstrukt.
1. GUI-editor
2. Script mode
Most calculations can be built in the GUI and you can always view a Calculation built there in script mode (all calculations are script at the core) but script mode has some additional features (typically more recently developed ones) and also enables more flexibility in how to structure a Calculation and how much logic to put in a single Calculation vs in separate Calculations
PreCalculations
PreCalculations will have a less central role in the new calculation engine (version 1.43+) and some notes below assumes a newer version.
- PreCalculations are accessed primarily via its parent Calculation. They are not visible in the Calculations overview.
- PreCalculations do not write data to a value type, the output is only used as source in a main/parent Calculation while a normal calculation must have a target valuetype to be valid.
Write types
Normal Calculations write data to one Valuetype and the written data cannot be edited. There are however exceptions as described below.
Suggestion Calculations
Suggestion Calculations write suggested values that can be edited by users. In the ValueType, these will still be visible as edited by a calculation but the data can be manually edited. There are a few options for how to write suggestions (update, upsert, new only, etc.). See KEX-documentation accessible inside your tenant for further documentation of how to configure a Suggestion Calculation in script mode.