Add Custom Action tab

Creates a custom action to use in Work Center.

Figure: Add Custom Action tab

Add Custom Action tab

Background and Setup

Examples

Prerequisites

How to Start

  1. Click Settings.

    Settings
  2. Click Work Center.

    Work Center Settings
  3. On the General screen, click the Custom Action tab.

    Click Custom Actions Settings Tab
  4. On the Custom Action screen, on the Custom Action tab, click the menu icon Menu Icon icon > Add.

    Click Add

Fields

Field NameDefinition

Display Name

Description:
Specifies the name that shows for the custom action on the Tasks screen or Processes screen.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
  • Special characters
Default Value:
None
Limitations:

Support for Unicode characters are available in these releases:

Internal Name

Description:
Specifies a unique, technical name for the custom action.

When a user clicks this field, the field shows the value specified in the Display Name field with no spaces. You can also specify a custom internal name. After the Internal Name is created, it can not be changed.

Allowed Values:
One line of text (a string) that can have letters and numbers, and can not have spaces or special characters.
Default Value:
None

Icon

Description:
Specifies the icon to show for the custom action.
Allowed Values:
An icon from the list.

Only out-of-the-box icons can be used.

Default Value:
None

Applies To

Function:
Specifies the Work Center view to show the custom action.

This setting can be used to limit access to the custom action.

Allowed Values:
Default Value:
Tasks

Menu Type

Function:
Specifies the type of menu to show the custom action on the Tasks screen or Processes screen.
Allowed Values:
  • Context Menu Action - Shows the custom action on the context menu to use it for a task or process selected in Work Center.
  • Bulk Action - Shows the custom action on the bulk action menu.

    Bulk actions apply to all tasks or processes in the view that is active in Work Center at runtime.

    Rules can limit a custom action to show for a specific group of tasks or processes.

Default Value:
Context Menu Action

JavaScript File

Description:
Specifies a JavaScript file to use to create the custom action.
Allowed Values:
A JavaScript file from the list.

This field shows the JavaScript files on the Shared Resources > JavaScript tab. To add a JavaScript file, refer to Add JavaScript File screen.

Default Value:
None

CSS File

Description:
Specifies the CSS files to use for the custom action.
Allowed Values:
One or more custom CSS files from the list.

This field shows the CSS files on the Shared Resources > CSS tab. To add a CSS file, refer to Add CSS File screen.

Default Value:
None

HTML File

Description:
Specifies an HTML file to use to create a custom screen that shows when a runtime app user clicks the custom action.
Allowed Values:
An HTML file from the list.

This field shows the HTML files on the Shared Resources > HTML tab. To add an HTML file, refer to Add HTML File screen.

Default Value:
None

On Click Function

Description:
Specifies the name of the JavaScript function to execute the custom action.

The JavaScript function specified in this field must exist on the JavaScript file specified in the JavaScript File field.

Allowed Values:
One line of text (a string) that represents the name of a Javascript function with no parentheses ().
Default Value:
None
Example:
ViewExpenseReport

Validation Function

Description:
Specifies the name of the JavaScript function to validate rules that are configured to show or hide the custom action.

The validation function runs when the custom action is published.

This function validates the configured rule and returns the result as a Boolean value. Work Center shows the custom action if the value is True and hides the custom action if it is False.

Allowed Values:
One line of text (a string) that represents the name of a Javascript function with no parentheses ().
Default Value:
None
Example:
ViewExpenseReport

Add Rule Add Rule icon

Description:
Adds a row to create a rule for the custom action.

Delete Rule Delete Rule icon

Function of this Screen:
Deletes the specified rule.
To Open this Field:
  1. On the Add Custom Action screen, click Add Rule Add Rule icon.

Operator

Description:
Specifies the operator to use in the rule.
To Open this Field:
  1. On the Add Custom Action screen, click Add Rule Add Rule icon.
Allowed Values:
  • ===
  • !==
  • >=
  • <=
  • >
  • <
Default Value:
None

Property

Description:
Specifies the property associated with the task or process to use to apply the rule.

This field shows the properties based on the value specified in the Applies To field.

To Open this Field:
  1. On the Add Custom Action screen, click Add Rule Add Rule icon.
Allowed Values:
A property name from the list.
Default Value:
None

Value

Description:
Specifies the value for the property.
To Open this Field:
  1. On the Add Custom Action screen, click Add Rule Add Rule icon.
Allowed Values:
A number or a text string that can contain spaces.
Default Value:
None

Status

Function:
Specifies whether the custom action can be used in Work Center.
Allowed Values:
  • Draft - The custom action is created, but it is in draft status. Hides the custom action in Work Center, and it can not be used.
  • Published - The custom action is published, and it can be used in Work Center.
Default Value:
Draft

Item Index

Description:
Specifies the list item number for the menu of the custom action to show on the menu on the Tasks screen or Processes screen.
Allowed Values:
An integer.
Default Value:
1
Example:
If the Item Index is 3, the custom action shows as the third item in the menu.

Save Save icon

Function:
Creates the custom action.

Run Run icon

Description:
Shows a preview of the custom action on the Preview pane.