Question


HCL Technologies Ltd
IN
Last activity: 16 Dec 2019 1:36 EST
"\n" is not working
Hi Team,
I am using "\n" in data transform to add new line.
but it's not adding new line.
Thanks,
Ravi
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


HCL Technologies Ltd
IN
Got the solution.
I am using property control as Rich text Editor.
Now i changed to TextArea it's working.
Thanks for your Response.


Pegasystems Inc.
IN
Hi Ravi,
Can you share your scenario? How are you adding \n in a data transform? I assume you are adding \n in a value of text property while setting value in a step.


HCL Technologies Ltd
IN
Hi Jains,
In Step 1 Param.Text = "Value changed from" +A+ "to" +B
In Step 2 Param.Text = Param.Text+"\n"+"Value changed from" +C+ "to" +D
In Step 3 Param.Text = Param.Text+"\n"+"Value changed from"+E+" to"+ F
Like this I am doing in Data Transform.
Here A,B,C,D E,F are properties


Pegasystems Inc.
IN
Hi,
If you try to add a "new line" to a html section, you have to use the html line-break "<br />".
"\n" or "\r\n" only works for plain text. Please refer the below link that might be helpful!
https://collaborate.pega.com/question/newline-using-n
Thanks,
Geeda.
-
Ali Sabry Ashroff


HCL Technologies Ltd
IN
Any Solution?
Could you please help me anyone.


BPM Company
NL
Didn't the above mentioned solution work? (using "/n/r")
Plus, how do you check if new line is added?
Accepted Solution


HCL Technologies Ltd
IN
Got the solution.
I am using property control as Rich text Editor.
Now i changed to TextArea it's working.
Thanks for your Response.