How to Create an XML Application
41-001160-00, Release 2.1, Rev 04 G-61
Creating an XML Application
Appendix G
CancelAction Attribute
(configurable via XML objects only)
The XML “cancelAction” attribute allows you to specify a URI that a GET is
executed on when the user presses the default CANCEL key.
You can add this optional feature at the end of any of the XML objects. The
format is:
<Hardkey action="Cancel">
<Label>Label to Display</Label>
<URI>URI to Get</Label>
</Hardkey>
XML Example:
The following illustrates the AastraIPPhoneTextScreen object using the “Cancel”
attribute:
<AastraIPPhoneTextScreen cancelAction=”http://10.50.10.117/
ft.xml”>
<Title>Test</Title>
<Text>This is a test of the cancel action</Text>
</AastraIPPhoneTextScreen>
When this XML script is sent to the phone, and the user presses the default
CANCEL key, the script executes a GET on http://10.50.10.117/ft.xml.
Note: The URI must be fully qualified.
Note: If the “cancelAction” attribute was not used in the above script,
then pressing the CANCEL key would simply cancel the current screen.