Cisco Unified Application Environment Developer Forums

« Back to Developers

Back to previous XML message

Combination View Flat View Tree View
Threads [ Previous | Next ]
I have an application that sends XML text to an IP Phone. Everytime a new XML text is send to the phone, new text overrides the exisitng text. I think this is ok. However, how can I programmatically tell the phone to go back to the previos text after user reviews the latest text (e.g. User click on review/close softkey). Is there an executeoption I can send to the phone to tell the phone to navigate to the previous text. Thanks!

Hi Terng,
 
You can programmatically create a SoftKey item which can prompt the user to go back to the previous text.
 
You can take some help from the link given below :
 
http://developer.cisco.com/static/cuae/2.5/2.5.1SR1/Designer/Metreos.Native.CiscoIpPhone.AddSoftKeyItem.html
 
Regards,
Rakesh.

Hi Terng,
 
For creating an application which will move back to an earlier text object, you' like to take a look at the document at
 
http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/all_models/xsi/7_1_2/english/programming/guide/xsi712obj.html
 
Look for Cuastom Softkeys.
 
In the AddSoftKeyItem action's URL field, provide a value such as SoftKey:Exit. This will take you back to the earlier text object.
 
Regards,
Rakesh.

To Kumar,
 
     I believe Softkey:Exit cannot be used as part of sendexecute operation. I need to trigger a sendexecute operation to tell the phone to go back to previous text. Here is more detail workflow: My application will send medical alert to a IP Phone. The user of the phone has 2 options (Accept and Reject) after receiving the message. After user accept or reject the message, it will trigger http request back to my app. After my app receive the response, it will need to trigger sendexecute operation to ask the phone to go back to previous text if there are any. The reason is there might be multiple medical alerts got send to the user's phone as a same time (may be couple millisecond apart). We want to make sure user is able to go back to the previous text/message to provide a reponse (Accept and Reject). I look at App:Close command, however this command require a unique app id to work properly/close the right window/pane/text/message/app. My question is all these texts/messages are send from the same app so what id i need to use. Should I generate  an unique id for each message I send. If yes, where do I specify this app id in my text/message. BTW, I use createtextoptions and etc to send text message to the phone. Please advise!
 
Thank you!
 
From Terng,

The phone does not cache the XML objects, and will not have cached any of the previous messages at all, so the phone will need to retrieve the previous messages from your server.  Since this is true, the Softkey on your form just needs to be 'PrevMsg' or similar, with a URL back to your webserver requesting the 'previous message.'  Your app server will need to keep track of which message the phone is currently viewing, and which were its previous messages, sending the appropriate message back when the user presses the soft key.

Hello Lim,
 
You need to build your custom logic to implement the required feature. You can maintain the status of each message related to specific user sau "Read" and "UnRead" and on click of "Accept" or "Reject" you can send request to your script for the pending messages.
 
Regards,
Umesh