Follow-On Topics

Related Topics

# About King Task Centre Formulas

Formulas are created using VBScript and used extensively throughout King Task Centre. They are dragged and dropped into fields within step configuration dialogs, or dropped directly into the task script where required.

Two types of formula may be created, depending on user permission and the intended use of the formula:

About Global Formulas

If a formula is required by several different tasks, then a user with either Formula Administrator or System Administrator rights can create a global formula through the main interface.

Once created, the global formula is then available for selection by any user through the Task Browser dialog. In addition, global variables can be exported to or imported from another file location so that they can be shared across different King Task Centre implementations.

About Task Formulas

If a formula is required by a specific task only, then any user can create a task formula through the Task Browser dialog. Once created, the formula is available for those steps in that task only. In addition, all formulas associated with a specific task are pre-selected for inclusion in the export file (`.TKS`) when exporting a task to another file location so that they may be shared across different King Task Centre implementations.

Formula Properties Dialog

The Formula Properties dialog box contains two tabbed panes listed below through which a Global or Task Formula may be created and configured.

The following methods may be used to open the Formula Properties dialog box:

|  | Right-click on the Formulas node in the Task Manager and select the Add Formula option from the drop down menu.

|  | Double-click on an existing Formula displayed in the Items List.

|  | Right-click in a clear area within the Items List and select the Add Formula option from the drop down menu.

|  | In the Environment tab of the Task Browser dialog box, select the Task option from the Scope drop down list. Then right-click on the Formulas node and select the New menu option.

|  | In the Environment tab of the Task Browser dialog box, select the Task option from the Scope drop down list. Then right-click on an existing Formula and select the Edit menu option.

|  | In the Environment tab of the Task Browser dialog box, select the Task option from the Scope drop down list. Then double-click on an existing Formula.

General

The General tab is used to enter the following properties for a Formula:
|  | Name — A name for the new Formula.
|  | Description — A description for the Formula.
| Click the image to view full size.

Script

The Script tab contains the following for creating a new Formula:
|  | Expression — A free text box into which the Formula script may be manually entered. Other Formulas, Functions, Step Properties, Variables and Task Properties may be dragged and dropped into the script from the Task Browser as required.
|  | Check Syntax — Checks the syntax of the script entered into the Scripting text box and displays the results in a pop up dialog box.
| Click the image to view full size.

Copyright © 2018 Quadrant Software B.V. All rights reserved.