[cisco-voip] Escape charaters in UCCX scripts
Anthony Holloway
avholloway+cisco-voip at gmail.com
Fri Jul 25 01:59:45 EDT 2014
Typically, if you need ecape characters in UCCX you would do this:
Set my_string = "line 1" + u'\n' + "line 2"
Which would produce:
line 1
line 2
On Thu, Jul 24, 2014 at 2:49 PM, ROZA, Ariel <Ariel.ROZA at la.logicalis.com>
wrote:
> Guys,
>
>
>
> I am trying to work with a UCCX script, but i don´t seem to get the hang
> of using the escape characters. At least does not seem to behave like a
> normal programming language.
>
>
>
> This is the scenario:
>
>
>
> I am appending some info to a text file, like a common .CSV file.
>
>
>
> I would like to achieve this:
>
>
>
> Each line is an append from my script (a very simple test script)
>
>
>
> 2000;25427462;5;4
>
> 2000;25427462;5;4
>
> 2000;25427462;5;4
>
> 2000;25427462;5;4
>
>
>
> But instead, I am Getting this:
>
>
>
> 2000;25427462;5;42000;25427462;5;42000;25427462;5;42000;25427462;5;4
>
>
>
> And when I try to use the escape carácter \n, I get this:
>
>
>
> 2000;25427462;5;4\n2000;25427462;5;4\n2000;25427462;5;4\n2000;25427462;5;4
>
>
>
> The lines I use to concatenate the file is this:
>
>
>
> Set dFile = DOC[demo\encuesta.txt] + "\n" + TEXT[sCallingNumber+";"+ sDNI
> +";"+ sPregunta1 +";" + sPregunta2]
>
> Set sFilePath = “demo\encuesta.txt”
>
> Upload Document (dFile to L[], sFilePath)
>
>
>
> So far, I tried using \n without the quotes, but it gives me an error.
> Also ‘\n’ seems to do the same as the double quotes…
>
> How can I make it to insert a newline?
>
>
>
> Regards,
>
>
>
> *Ariel Roza*
> *Field Engineer / Argentina*
> *Logicalis *
>
> Tel: +54 11 4344 - 0458
> ariel.roza at la.logicalis.com
>
> Peru 327 – CABA – Argentina – C1067AAG
>
> www.la.logicalis.com
> *________________________*
> *_________________________ **Business and technology working as one*
>
>
>
> *Síguenos en:* [image: Description: Description: Descripción:
> Descripción: Descripción: Descripción: Descripción: Descripción: tw]
> <http://twitter.com/LogicalisLatam> [image: Description: Description:
> Descripción: Descripción: Descripción: Descripción: Descripción:
> Descripción: fb]
> <http://es-es.facebook.com/pages/Logicalis-Latam/234648439078> [image:
> Description: Description: Descripción: Descripción: Descripción:
> Descripción: Descripción: Descripción: yt]
> <http://www.youtube.com/logicalislatam>
> <http://www.slideshare.net/logicalis> [image: Description: Description:
> Descripción: cid:image005.jpg at 01CCDC0C.A5297E60]
> <http://www.cxounplugged.com/>
>
> [image: Description: Description: Descripción: Descripción: Descripción:
> http://www.estudioponzo.com.ar/firma.gif]
>
>
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.jpg
Type: image/jpeg
Size: 864 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 1467 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.jpg
Type: image/jpeg
Size: 851 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.jpg
Type: image/jpeg
Size: 3975 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 1469 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 1384 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140725/a5081556/attachment-0002.png>
More information about the cisco-voip
mailing list