Web-enabled Script Variables
Begin the process of designing the hello.aef script by defining script variables.
Use the Variable pane of the Cisco Unified CCX Editor to define two variables for the hello.aef script, as shown in the fallowing table:
Variable Name |
Variable Type |
Function |
---|---|---|
name |
String |
Contains the value entered by the user. See The Get Http Contact Info Step,. |
doc |
Document |
Contains the document to be sent in response to the user. See The Create File Document Step,. |
To define the two variables for the hello.aef script, do the following:
Procedure
Step 1 | With the Hello.aef file open in the Cisco Unified CCX Editor window, click the New Variable icon in the Variable pane toolbar. The New Variable dialog box appears. ![]() |
Step 2 | From the Type drop-down menu, choose String. This automatically enters quotation marks in the value field since the value will be enclosed in quotations. |
Step 3 | In the Name field, enter name. This will be the variable that will hold the name entered by the user. |
Step 4 | Click OK. The New Variable dialog box closes, and the name of the first variable appears in the Variable pane of the Cisco Unified CCX Editor. |
Step 5 | To define the second variable, doc, click the New Variable icon in the Variable pane toolbar. The New Variable dialog box appears, as shown in. |
Step 6 | From the Type drop-down menu, choose Document. DOC appears automatically in the value field. |
Step 7 | In the Name field, enter doc. This variable will contain the document to be sent in response to the user. |
Step 8 | Click OK. The New Variable dialog box closes, and the name of the second variable appears in alphabetical order with the first variable in the Variable pane of the Cisco Unified CCX Editor. |