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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

character <enter> in script

Hi,

I am developing a CCX 8.5 premium script and  I need to add a "new line" character in a string variable and  then to save this info inside a xlm file but so far i have not  made it. I have tried with \n\r but not, whole string value stays in the same line, for example:

STRING temp

DOC outputdoc

temp = D[now] + T[now] + "new line"

set outputdoc = temp

how do i do to get that?

Thanks in advance.

  • Contact Center
1 ACCEPTED SOLUTION

Accepted Solutions

character <enter> in script

Hi,

well, you don't really need a newline character in an XML.

However, you can use System.getProperty("line.separator"). But again, I don't really see the use of it. Basically everything is a binary stream and it's up to the final rendering how it is presented.

G.

5 REPLIES

character <enter> in script

Hi,

well, you don't really need a newline character in an XML.

However, you can use System.getProperty("line.separator"). But again, I don't really see the use of it. Basically everything is a binary stream and it's up to the final rendering how it is presented.

G.

New Member

character <enter> in script

Gergely, thanks for your help. I have solved my problem.

Re: character <enter> in script

Hi, how did ypu solve it?
Thanks.
G.

Sent from Cisco Technical Support iPhone App

New Member

character <enter> in script

Hi,

I included the System.getProperty("line.separator")  like you told me and I saved info in txt file and then I made export task in excel.

character <enter> in script

Hi,

alright, glad to hear that. Would you like to help other users to mark my answer as correct so they find the solution right away.

Thanks.

G.

178
Views
0
Helpful
5
Replies
This widget could not be displayed.