Add custom toolbar action buttons
  • 06 Dec 2023
  • 4 Minutes to read
  • Dark
    Light

Add custom toolbar action buttons

  • Dark
    Light

Article summary

You can configure custom action buttons for the worksheet toolbar. For example, you can configure actions that are tailored to specific worksheets, such as Publish All Changed Prices, Publish Flagged Prices, Refresh Guidance, Refresh Worksheet, or Get the Latest Line Items.

The Actions toolbar displays up to three action buttons. If you configure more than three, they will appear in the dropdown list at the end of the actions toolbar.

Note

If you want to configure your own custom actions, ask your Zilliant representative to provide you with the following information:

  • A list of available job workflows configured for that purpose
  • Descriptions or guidance about the proper scoping values to use

Add an action button

Use the Configuration interface to define a job workflow that will perform the desired IQ Interface action.

  1. From the IQ Interface worksheet where you want to add actions, select Properties.

  2. In the leftmost panel, select Toolbar Actions.

  3. In the gray-colored Toolbar Actions area, select New.

  4. Select or enter values to create the new action button:

    • Label—Enter a name that describes the action's purpose. If you enter a name that exceeds 20 characters, the system automatically truncates it. Hover over the button on the toolbar to see the full name of the action.

      • (Optional.) In the Icon dropdown, select an icon to display. The selected icon replaces the label.
    • Job Workflow—Enter the Automation ID of the job workflow that you defined in Step 1.

    • Scope—Enter a value to make the job independent from all other jobs. For more information on the Scope attribute, refer to Scoped actions below.

    • You can select to Disable Scope. In this case, the jobs won't be queued by the system but will run in parallel. For more information, refer to the Unscoped actions below.

      Tip
      • If you specify the Scope field, the Disable Scope checkbox will be inactive.
      • If you select the Disable Scope checkbox, the Scope field will be inactive.
    • In the Workflow Type dropdown, select Platform.

    • The Visible checkbox gives you the option to toggle visibility of the new action button.

    • The Track Execution History checkbox gives you the option to view an execution log of this action, since the jobs can take some time to complete, and might be queued up temporarily behind other scheduled jobs.

    • The Set Schedule or Confirmation checkbox gives you the option to delay the action's execution and to specify an additional message for the user when prompting an action.

    • Confirmation Message (Optional.)—Enter a user-oriented message that will appear in either a Confirmation or Schedule an Action modal dialog upon clicking the action from the Actions dropdown.

  5. Select Save.

  6. Select Go back to Workbook.

Scoped actions

Important

To use the Scope attribute successfully, you must contact your Zilliant representative requesting that they enable the feature flag in your environment. This will make possible for two jobs with the same Scope value to be queued by the system.

You must be careful when using Scope values across all action buttons that act on the same entity. If two destructive actions try to act in parallel on the same entity at the same moment, there is a potential for collision that might result in data loss or data corruption.

For example, some job steps (such as Import CSV from S3) can perform destructive actions on the target entity as part of their processing. If you have an unscoped job workflow and a uniquely scoped job workflow operating on the same target entity, then destructive actions from both jobs could collide and corrupt the target entity.

Therefore, you need to ensure that all job workflows that affect the same target entity share the same scope. This way, all job workflows will run in serial order and will not conflict with each other.

To achieve this, do one of the following:

  • Leave all such job workflows unscoped
  • Ensure that all such job workflows use the same string for their Scope value.

The Scope attribute accepts any string value up to 18 characters long. It can be a uniquely generated value or a short description of the job that will be invoked by that component.

  • If you enter a unique value, the job won't be queued together with any other jobs.
  • If you enter a non-unique value, the job will be queued and run in sequential order with all other jobs that share the same Scope value.
  • If you provide no value, or the string UNSCOPED, then the first 18 characters from the Job Workflow field is used as a scope attribute. In this case, a job such as Import CSV from Salesforce can be queued and run in a sequential order with all other unscoped jobs (for example, Optimization, Publishing, or a custom job workflow).

Unscoped actions

You can run row-level or toolbar actions without providing a scope. This allows the same action to be run by different users at the same time. Ultimately, this enhances the multi-user capabilities in the IQ Interface platform.

When you select Save on the toolbar or row-level action properties dialog with the Disable Scope checkbox selected, you will see a warning message.

  • Select Cancel to go back to the action's properties dialog
  • Select Yes to save the action without the scope.

Edit existing toolbar actions

  1. Use the Configuration interface to define a job workflow that will perform the desired IQ Interface action.
  2. From the IQ Interface worksheet, select Properties.
  3. In the leftmost panel, select Toolbar Actions.
  4. In the gray-colored Toolbar Actions area, you can:
    • Select any of the existing actions to edit their properties or delete them.
    • Drag existing actions in the order you would like to appear in the worksheet.
  5. Select Save.
  6. Select Go back to Workbook.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.