In this article
In the event you want the scheduling script to perform operations which cannot be configured using the regular CATI Supervisor functions available through the user interface, you can write the script code manually. This requires a thorough knowledge of the JavaScript.NET language.
The script code you enter using this tab is executed only when the “Run specified script” action is enabled (go to Specifying Rules for more information).
Creating a Custom Scheduling Script Code Manually
- With the scheduling script opened in the View mode (go to Viewing the Existing Scheduling Script Settings for more information), go to the Custom Script tab in the lower frame.
- Enter the script code (JavaScript.NET language is used) in the text field.
- Click the Check button in the lower frame's toolbar to check the code for errors - the results of the check are displayed in a separate dialog.
Figure 1 - Adding a custom script
This tab comprises a text field where you enter your script code.
Note that you can also paste the contents of your clipboard into this field, so you can write the code in another application and copy it in.
It may be useful to refer to the Scripting Reference; this opens in a separate window when you click the Scripting Reference button .
The tab's toolbar also holds the Save and Launch button ; click this to save and launch the current scheduling script, and the Save button which saves the scheduling script without launching it. Refer to Accessing the Call Object in Custom Scripting for detailed instructions on writing and using scripts and for script code examples.