I have a BPM that returns a comment in a pop-up box. When it runs in the smart client it has the newlines in it. when it runs in the browser it doesn’t. I tried adding to the string and \r\n works for manually adding the new lines but the problem is I can’t split the string on any character in the comment string to be able to manually add the new lines. I don’t want to add logic to the BPM to only run in classic and then rebuild the pop-up logic in appstudio. Any ideas on how to get the pop-up to recognize the new lines?
Sounds like it only has \n in the source text, and the web pop up needs \r\n. I think a simple replace in the BPM where "\n’ is replaced with ‘\r\n’ should fix this from what you have said. Should still look fine in classic too.
I am pretty sure I tried that but I have tried so much maybe I missed that. I will try it just to be sure.
Yes that was one that I tried. It doesn’t work.
So how did you add them manually?
It’s a canned comment
If it doesn’t strip them out of the source comment, it shouldn’t strip them out when you add them in either. So I think the replace isn’t working. When I had to do the same thing for a SSRS report, I had to make sure it was looking for the actual character code (by using CHR(10)) and not the letters /n
I suspect that a similar thing would be needed in a BPM
I finally got it. It’s not replacing \n or \r\n it’s replacing \r. I never used \r by itself so I never thought to try it