Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
New line in Text field
PGH
Hello,
I m facing one prob. with Text box, in my text box i m using Dynamic Text which contain Dynamic data from Database, which is String which contain '\n' character as newline character, so i want to display this data in Text box but start new line when it '\n' character occur, but i can't get expected result. so please help if any idea regarding this.
in Text box i used <VALUE-OF format="HTML">row[text"]</VALUE-OF>
and row[text"] = "first\nsecond\nthird"
expected: first
second
third
Current : firstsecondthird
Thanks
Find more posts tagged with
Comments
JasonW
Can you use a dynamic text element instead of a text element or string replace the \n with String.fromCharCode
<VALUE-OF>"this is a " + String.fromCharCode(13) + String.fromCharCode(10) + "test"</VALUE-OF>
Jason
PGH
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="93957" data-time="1326317494" data-date="11 January 2012 - 02:31 PM"><p>
Can you use a dynamic text element instead of a text element or string replace the \n with String.fromCharCode<br />
<br />
<VALUE-OF>"this is a " + String.fromCharCode(13) + String.fromCharCode(10) + "test"</VALUE-OF><br />
<br />
Jason<br /></p></blockquote>
<br />
First of all Thanks Jason, but its also not working...please suggest some thing else which can work.. thanks <br />
<br />
Piyush
JasonW
Can you post a sample report with the issue?
Jason