10-23-2007 11:27 PM - edited 03-13-2019 04:33 PM
Hi all,
Does somebody know how to implement the following thing for Cisco 7921G phone.
I loop through the SQL-recordset and display the results (over 200 lines) in the phone, line by line. In 7920 the following works great: <CiscoIPPhoneText><Text>Loop, Response.Write variable & Chr(13) MoveNext, End Loop</Text></CiscoIPPhoneText>. That one writes the current variable and changes to the next line. In 7921, however, the chr(13) is ignored, and variables are written to the phonescreen consecutively. Using CiscoIPPhoneMenu is out of the question, because it shows only 99 records...
Hope you understood my problem...
TIA,
Sami
10-24-2007 02:01 AM
try "\r\n", "\n\n" or "\n"
10-24-2007 02:28 AM
No, doesn't work. I think those are for Javascript only?
Here is the code:
Response.Write("
Response.Write("
If Not rsData.EOF Then
rsData.MoveFirst
Do While Not rsData.EOF
Response.Write rsData.Fields("VARIABLE") ' carriage return should be here
rsData.MoveNext
Loop
Response.Write("")
End If
Response.Write("")
-Sami
10-25-2007 10:47 AM
I used \n and it works.
10-25-2007 08:09 PM
ok, nice to know.
However, I cannot get it to work.
How would you code this line:
Response.Write rsData.Fields("VARIABLE") & "\n"
That just writes the \n in the phonescreen every time that line of code is looped.
If the variables were cat,dog,mouse then it would write cat\ndog\nmouse\n
-Sami
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide