Select> elemenet details, Softkeys> element – Grandstream GXP21xx XML Application Guide User Manual
Page 28

FIRMWARE VERSION 1.0.4.23 GXP21xx XML APPLICATION GUIDE Page 28 of 36
<select> ELEMENET DETAILS
Object
Position
Type
Values
Comments
select
Element
Optional
-
name
<select> Attribute
Mandatory
string
A unique id for the select field
styles
Child element
Mandatory
-
Selection list display style
pos_x
<styles> Attribute
Mandatory
int
Select field displays from X
pos_y
<styles> Attribute
Mandatory
int
Select field displays from Y
items
Child element
Mandatory
-
Selection list options
item
<items> Child element
Mandatory
-
Attribute "value" is mandatory;
Text is the displayed string for this option.
Example:
An selection list for age is defined.
<SoftKeys> ELEMENT
This element is the parent element for <SoftKey> element. The purpose is to set up the softkey display and
action. This element is mandatory.
<DisplayString>
<X>5</X>
<Y>65</Y>
<DisplayStr>Age</DisplayStr>
</DisplayString>
<select name="Age">
<styles pos_x="5" pos_y="80"/>
<items>
<item value="1">Under 25</item>
<item value="25">25 to 50</item>
<item value="50">Above 50</item>
<item value="100">Refused to answer</item>
</items>
</select>