Defining the Client Script Variables

Begin the process of designing the getQuoteClient.aef script by defining script variables.

Use the Variable pane of the Cisco Unified CCX Editor to define five variables, as shown in the table below:

Variables in the Web-Enabled Client Script

Variable Name

Type

Value

Description

doc

Document

DOC[]

Contains the URL for the client request to the local web server.

result

Float

0.0F

Contains the value obtained by the client script.

stockprice

Prompt

P[stockprice.wav]

Contains the StockPrice.wav file that plays back the sentence, “The stock price of the selected company is.”

resultPrompt

Prompt

P[]

Contains the information in the result variable.

outputPrompt

Prompt

P[stockprice.wav]

Contains the resultPrompt and stockprice prompts.

To define the five variables for the getQuoteClient.aef script, do the following:

Procedure


Step 1

In the Cisco Unified CCX Editor window, click the New Variable icon in the Variable pane toolbar.

Step 2

In the Name field, enter doc.

This variable will contain the URL for the client request to the local web server.

Step 3

From the Type drop-down menu, choose Document.

DOC appears automatically in the value field. This field will contain the name of the document when the script is run.

Step 4

Click OK.

The New Variable dialog box closes, and the name of the variable appears in the Variable pane of the Cisco Unified CCX Editor.

Step 5

For each of the other four variables, repeat Steps 3 to 5, using the information shown in the table above.

You are now ready to create the getQuoteClient.aef script in the Design pane of the Cisco Unified CCX Editor.