Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Cisco 7921, VBSCript and Carriage Return

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

4 REPLIES
New Member

Re: Cisco 7921, VBSCript and Carriage Return

try "\r\n", "\n\n" or "\n"

New Member

Re: Cisco 7921, VBSCript and Carriage Return

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

New Member

Re: Cisco 7921, VBSCript and Carriage Return

I used \n and it works.

New Member

Re: Cisco 7921, VBSCript and Carriage Return

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

343
Views
0
Helpful
4
Replies
CreatePlease to create content