Feedback

  • Contents
 

IS_Action_Exit

Definition

This action provides the ability to exit Scripter from within the web page that is loaded in Scripter. Scripter will recognize click events from any HTML element whose name has an associated action documented in this API (e.g.: "IS_Action_CallComplete").If the script needs to associate several buttons with the same action, then define the action using a meta element and call the click event on the meta element from the button(s).

Attributes

The IS_Action_Exit element accepts the following attributes:

[endtask]

This Boolean attribute is optional. When set to false, the script will request logouts from Dialer and wait for those request to be granted. Once the Dialer logout requests have been granted, the script will exit both the Dialer session and Scripter. When set to true, which is the default*, the script will immediately close Scripter. The Dialer session will continue running until a timeout occurs. If you don't specify the EndTask attribute, the result will be the same as setting the attribute to true.

[callback]

The callback property ensures that this action executes asynchronously in Interaction Connect. Starting with 2018 R3, all Interaction Scripter actions (IS_Actions) provide a callback property for use in Connect scripts only. In the example below, statements inside the highlighted callback function block execute only after the action completes. The callback will return an error if the action fails. See Writing custom scripts for Interaction Connect or Scripter .NET.

Here's how to use the .callback property in a script for Interaction Connect:

function IS_Action_Exit() {
  IS_Action_Exit.endtask=false;
  IS_Action_Exit.callback = function(error) {     if (error) {       console.error("IS_Action_Exit failed.");     } else {       console.log("IS_Action_Exit succeeded.");     }   } }

Example 1

This example paints a button that closes Interaction Scripter.

<body>
    <input type=button name="IS_Action_Exit" value="Exit">
</body>

Example 2

function Exit() {
    IS_Action_Exit.endtask = false;
    IS_Action_Exit.click();
}

Example 3

function Exit() {
    IS_Action_Exit.click();
}