Yealink Forums

Full Version: XML App InputScreen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am having some trouble understanding the InputScreen object.

1) The following displays as I would expect, but I can't type anything into the 'Test' field using the keypad:

Code:
<YealinkIPPhoneInputScreen type="number" Timeout="0" LockIn="yes" displayMode="condensed" editable="yes">
<Title wrap="yes">Test Input Screen</Title>
<Prompt>Test:</Prompt>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/comment-menu.xml</URL>
<Parameter>commentpage</Parameter>
</YealinkIPPhoneInputScreen>


2) If I add another InputField, the 'Test' field disappears and I still can't enter any value from the keypad.

Code:
<YealinkIPPhoneInputScreen type="number" Timeout="0" LockIn="yes" displayMode="condensed" editable="yes">
<Title wrap="yes">Test Input Screen</Title>
<Prompt>Test:</Prompt>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/comment-menu.xml</URL>
<Parameter>commentpage</Parameter>

<InputField type="string">
<Prompt>User Name:</Prompt>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/menu2.xml</URL>
<Parameter>username</Parameter>
<Selection>2</Selection>
<Default>hello</Default>
</InputField>
</YealinkIPPhoneInputScreen>

3) The URLs on additional input fields seem to be ignored....what are these used for?

Thanks,
Kevin
Hello,

For your 1 and 2 question, please change the LockIn from "yes" to "no", it will be ok.

For your 3 question, please see below comment:

"Specify the target URL to receive the user input."

BR

klaus
Hi Klaus,

1) Changing LockIn to 'no' does allow input...but it also allows phone events to interrupt the app which isn't desirable.
2) Changing LockIn to 'no' does not have an effect on the first field 'Test' disappearing.
3) The URL for the 'User Name' field is never called, so how does it receive user input?

Thanks,
Kevin
Hi Kevin,

For your questions:

1.Yes, when there is an incoming call(just for example), it will interrupt the APP,now there is no sentence to control that.
2.your sentence have sonething wrong, please use below sentcen:
<YealinkIPPhoneInputScreen type="number" Timeout="0" LockIn="no" displayMode="condensed" editable="yes">
<Title wrap="yes">Test Input Screen</Title>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/comment-menu.xml</URL>

<InputField type="string">
<Prompt>test:</Prompt>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/menu2.xml</URL>
<Parameter>username</Parameter>
<Selection>2</Selection>
<Default></Default>
</InputField>

<InputField type="string">
<Prompt>User Name:</Prompt>
<URL>http://10.2.2.20:83/yealink/xmlapps/ioboard/menu2.xml</URL>
<Parameter>username</Parameter>
<Selection>2</Selection>
<Default>hello</Default>
</InputField>
</YealinkIPPhoneInputScreen>

3.when the user presses the Submit soft key or OK/√ key on the phone after entering the string which filed need, phone will call the URL.

For more info,please refer to the belink link:

http://download.support.yealink.com/down...V81_20.pdf

klaus
Reference URL's