« Back to IP Phone Services Questions

How to send QueryStringParam with SoftKey:Submit

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
<CiscoIPPhoneInput>
 
<Title>Test</Title>
<Prompt></Prompt>
<URL>http://<%=HomeDir%>/addres.asp</URL>
<InputItem>
<DisplayName>Name</DisplayName>
<QueryStringParam>txtuser</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
<InputItem>
<DisplayName>Phone</DisplayName>
<QueryStringParam>txtphone</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>N</InputFlags>
</InputItem>
<SoftKeyItem>
<Name>Back</Name>
<URL>http://<%=HomeDir%>/menu.asp</URL>
<Position>1</Position>
</SoftKeyItem>
<SoftKeyItem>
<Name>Add</Name>
<URL>SoftKey:Submit</URL>
<Position>2</Position>
</SoftKeyItem>
<SoftKeyItem>
<Name>Search</Name>
<URL>SoftKey:Submit</URL>
<URL>QueryStringParam:search=1</URL>
<Position>3</Position>
</SoftKeyItem>
</CiscoIPPhoneInput>




when i press Add key i get querystringparameter txtuser and txtphone on addres.asp page but it is not work with
Search key.


How to pass the QueryStringParam search=1 along with the InputItem txtuser and txtphone to the addres.asp page when Search key is press?


thanks in advance.
 
 

I dont think you can pass parameters using softkeys - it has to be a querystringparam. Thats what i think.
 
Hi,
 
<CiscoIPPhoneInput>
 
<Title>Test</Title>
<Prompt></Prompt>
<URL>http://<%=HomeDir%>/addres.asp</URL>
<InputItem>
<DisplayName>Name</DisplayName>
<QueryStringParam>txtuser</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>A</InputFlags>
</InputItem>
<InputItem>
<DisplayName>Phone</DisplayName>
<QueryStringParam>txtphone</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>N</InputFlags>
</InputItem>
<SoftKeyItem>
<Name>Back</Name>
<URL>http://<%=HomeDir%>/menu.asp</URL>
<Position>1</Position>
</SoftKeyItem>
<SoftKeyItem>
<Name>Add</Name>
<URL>SoftKey:Submit</URL>
<Position>2</Position>
</SoftKeyItem>
<SoftKeyItem>
<Name>Search</Name>
<URL>SoftKey:Submit</URL>
<URL>QueryStringParam:search=1</URL>
<Position>3</Position>
</SoftKeyItem>
</CiscoIPPhoneInput>




when i press Add key i get querystringparameter txtuser and txtphone on addres.asp page but it is not work with
Search key.


How to pass the QueryStringParam search=1 along with the InputItem txtuser and txtphone to the addres.asp page when Search key is press?


thanks in advance.
 
 

Not sure if this string is still relevant; however, in order to add that to the items passed, you should add it to the end of the url - ie. /address.asp?search=1 The other input items will attach themselves automatically to the end.

When using a softkey, instead of <URL>Softkey:Submit</URL>, do something like this - <URL>http://xxx/xxx.asp?search=1 </URL> (the url of the next page). Then the actual input parameters will attach themselves automatically.  I have done this successfully in my service. 
Cindy