Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 Technical User Reference of the Price List Impact Simulation - Usage.

Code Block
languagejson
themeMidnight
titleSample of contextualActions content (with placeholders instead of some values)
linenumbersfalse
[
  {
    "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 newModelPage is one of the constant’s value available in AppPages

  • targetPageEntityType - The name of the Model Class used for 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.