2-5
Cisco Unified IP Phone Services Application Development Notes
OL-18696-01
Chapter 2 CiscoIPPhone XML Objects
XML Object Definitions
Figure 2-1
Sample User Input Display
Definition
<CiscoIPPhoneInput>
<Title>Directory title goes here</Title>
<Prompt>Prompt text goes here</Prompt>
<URL>The target URL for the completed input goes here</URL>
<InputItem>
<DisplayName>Name of the input field to display</DisplayName>
<QueryStringParam>The parameter to be added to the target URL</QueryStringParam>
<DefaultValue>The default display name</DefaultValue>
<InputFlags>The flag specifying the type of allowable input</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
The
Title
and
Prompt
tags in the object delimit text are used in the same way as the identical fields in
the other CiscoIPPhone XML objects.
The
URL
tag delimits the URL to which the input results are sent. The actual HTTP request sent to this
server specifies the URL with a list of parameters that are appended to it as a query string. The
parameters include Name/Value pairs, one for each input item.
Note
CiscoIPPhoneInput objects do not use the HTTP POST method.
The
InputItem
tag delimits each item in the list. The number of
InputItems
must not exceed five. Each
input item includes a
DisplayName
, which is the prompt that is written to the display for that particular
item. Each item also has a
QueryStringParam
, which is the name of the parameter that is appended to the
URL when it is sent out after input is complete. Each input item can also use the
DefaultValue
tag to set
the default value to be displayed.
The final attribute for each input item comprises a set of
InputFlags
. The following table describes the
input types that are currently defined.
InputFlag
Description
A
Plain ASCII text—use the DTMF keypad to enter text that consists
of uppercase and lowercase letters, numbers, and special characters.
T
Telephone number—enter only DTMF digits for this field. The
acceptable input includes numbers, #, and *.
N
Numeric—enter numbers as the only acceptable input.
E
Equation—enter numbers and special math symbols.
U
Uppercase—enter uppercase letters as the only acceptable input.