...
Contextual Actions
Contextual Actions are actions, which could be performed from the price list/grid detail page. They will be represented by special buttons at the top of the price list/grid detail page. For example of usage, see Price List Impact Simulation - Usage.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[ { "targetPage": "newModelPage", "targetPageEntityType": "MODEL_CLASS_NAME", "targetPageTarget": "drawer", "targetPageInputs": { "FIRST_STEP_NAME": { "FIRST_TAB_NAME": { "INPUT_FIELD_NAME_1": "VALUE_1", "INPUT_FIELD_NAME_2": "VALUE_2" } } } } ] |
The contextual actions are configured as context linking. The general meaning of the context linking parameters is described on page Context Linking. This article describes only the special differences used by contextual actions.
targetPage - name of the page, which should be called. The value newModelPage is one of the constant’s value available in AppPages.
Note, that the value newModelPage is supported only here in Contextual Actions, but in the future it may be also supported in Context Linking generally.
targetPageEntityType - The name of the Model Class used for to calculate the price list simulation.
targetPageTarget - Defines, how the link is opened. The value drawer means, that the content of first Tab (expected to have some input fields) of the first Step of the model will be displayed on the right side of the price list/grid detail page.
targetPageInputs - values passed to the inputs of the first Tab of the first Step of the Model. To pass dynamically a value from the price list/grid entity, use the field name in composite brackets - e.g.
{typedId}
, to pass in the actual value of typedId field of the price list/grid, from which we’re calling the context action.