Table of Contents

Adding a button

You can add a button to a form to apply an action, e.g. to close a ticket.

For this, you need to first add a behavior definition, and then define the button, so that it can be shown in the UI that triggers the API action.

  1. In the Automation app in DataMiner Cube, run the DOM Editor script. You can find this script in the folder DOM\DOM Main scripts.

    The script window will show a list of the available modules, as well as several buttons.

  2. Next to the module in which you want to add a button, click Edit.

    A window with four buttons will be displayed.

    DOM Editor: edit module window

  3. Click Behavior Definitions, and then click New.

  4. Click Actions.

    DOM Editor: new behavior definition

  5. Define the action. For example, for an action to close a ticket, you could configure this as follows:

    DOM Editor: new behavior definition

    The script options PARAMETERBYNAME:Action:Close ticket in the example above are used by DataMiner Automation to know which action is triggered.

  6. Click Back twice to go back to the behaviors window.

  7. Click Buttons, and click Add.

  8. Configure the button. For example, for a button to close a ticket, you could configure this as follows:

    DOM Editor: new button

  9. Click Back twice, and click Apply.