Softdial Scripter™
Designer
Subscripts Tutorial
This tutorial demonstrates how to
- create subscripts
- pass script field data to and from them
We will create and use subscripts with the following elements:
The project is organised as shown in Fig. 1.
Fig. 1 - Project Organisation
The Start script calls a subscript (MySubscript) which in turn calls a second subscript (MySubscriptSubscript) and terminates the call session with the End Call Transaction step.
The project consists of the following scripts:
- Start (the default script).
- MySubscript which:
- sets up the text for the user prompt Label - "Enter a number :",
- calls MySubscriptSubscript to display the prompt text and get the user input,
- performs the calculation on the user input,
- sets up the text for the user prompt Label - "The square of the number is :",
- calls MySubscriptSubscript to display the prompt text and the result of the calculation.
- MySubscriptSubscript which contains the screen step for the user interface.
Next, follow the tutorial:
1) Getting Started
2) Editing the Start Script
3) Editing MySubscript
4) Editing MySubscriptSubscript
5) Creating a Screen
6) Editing MySubscriptSubscript (2)
7) Publishing the Project
8) Running the Script