book
Article ID: KB0090920
calendar_today
Updated On:
Description
Resolution:
Description:
============
New line character “&crlf” doesn’t work in Global variable with tib:tokenize() method.
Environment:
===========
All
Symptoms:
========
In TIBCO Businessworks, the new line character “&crlf” does not work in Global variable with the tib:tokenize() method, but plain text works fine.
Cause:
=====
When "&lf" is used in the tib:tokenize() function, it is not treated as a CR/LF. Instead, it is just a plain text. The outer token does not work as expected.
Resolution:
==========
Using tib:base64-to-string, for example, the Base64 representation of New Line Character is DQo= . You can define a global variable named LineDelimiter and set the value to “DQo=” . In XPath, whenever you want to use New Line, just call a function such as tib:base64-to-string($_globalVariables/ns1:GlobalVariables/New Item.
Asimple example is attached (Filename:LocalVariable_support.zip).
Issue/Introduction
New line character “&crlf” does not work in Global variable with tib:tokenize() method.