Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to present a server name '\\nprinting001' in a QlikView text object, but no matter how I try the '\n' will always be displayed as a line break. My string '\\nprinting001' gets displayed as in the picture of my yellow text object below.
The only workaround I found is to transform my text to upper case as in the image below.
(I'm attaching a QlikView document demonstrating my issue)
I think it's a special parsing "feature" … and I don't know a direct way to cure it because it didn't add a "real" line-break which you could see if you copies the content to notepad++ and therefore the "classical" tries with combining pieces, replacing the line-break again, doubling the logic with \\\nn... and similar approaches didn't work.
A workaround could be to add a zero white-space or something similar, like:
= '\\' & chr(8203) & 'nprinting'
to bypass this feature.
- Marcus
I think it's a special parsing "feature" … and I don't know a direct way to cure it because it didn't add a "real" line-break which you could see if you copies the content to notepad++ and therefore the "classical" tries with combining pieces, replacing the line-break again, doubling the logic with \\\nn... and similar approaches didn't work.
A workaround could be to add a zero white-space or something similar, like:
= '\\' & chr(8203) & 'nprinting'
to bypass this feature.
- Marcus
Thanks @marcus_sommer .
It's not pretty but it will works as a display. (Copying back into a exporer adress field will most likely fail)
LET vL.servername = replace('\\nprinting001\', '\n', '\'& chr(8203) &'n');
Another approach might be to use a straight table or maybe another chart or a button instead of the textbox - in most of them the string \\nprinting will natively work whereby it may bring other disadvantages in regard to the specific object-properties but it may worth an attempt.
- Marcus
Yes you are correct. The imput box in my example app are rendering the variable correctly and a chart object will do so as well.