Creating an XML Application

How to Create an XML Application

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.

Note: The URI must be fully qualified.

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: If the “cancelAction” attribute was not used in the above script, then pressing the CANCEL key would simply cancel the current screen.

Appendix G

41-001160-00, Release 2.1, Rev 04

G-61

Page 799
Image 799
Aastra Telecom 53I, 57I CT, 55I manual CancelAction Attribute configurable via XML objects only