Question
Optum
US
Last activity: 27 Oct 2016 1:16 EDT
How to escape Reserved Characters, in an Activity
Hello All:
Thank You for reading.
When entering Notes with certain special characters, the special character is getting converted into its escape character sequence.
i.e: Meet @ 4pm is getting saved as Meet @ 4pm
I have tried to use the replace function as follows @(Pega-RULES:String).replaceAll(.pyNote, "@", @)
By not enclosing the escape character sequence, in quotes. However, Pega is not liking that.
Any ideas, please on how to escape characters? Perhaps I am not using the right Function??
Thank You in Advance!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 1 Apr 2016 6:54 EDT
Optum
US
Pega has provided us with a HOTFIX for this issue. Details are below:
HotFix Details
PARENT HOTFIX: HFIX-8829
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT
DEPENDENT HOTFIX(ES):[HFix-5106]
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT
GovCIO
US
Hi,
I tried running the activity with a testpage and setting the value properly. Question is on how did you call this activity and more details of it. If possible, screenshot please.
Thanks,
Ravi Kumar.
Optum
US
Good Day Ravi!
Thank you for your reply. I believe the issue is that, the function I have called, expects two strings. And I do not want to replace one string, with another string, but rather the escape sequence characters. Pega is not allowing me to save the change at all. As it is expecting another string:
GovCIO
US
Thanks Nicole for the offline discussion in our IM and hope you some work around of this issue. Will see if I can provide a better solution than what you have after our discussion .
Thanks,
Ravi Kumar.
Optum
US
Thank You Ravi! Your solution have solved this issue, I have been working on for weeks! I even logged an SR with Pega. You made my week- thank you so much for the extended time on this issue!
JPMC
US
Hi Nicole / Ravi,
Could you please post the solution details here? You discussed offline and the solution details are not here. it might help others.
We have similar issue in Filed Value rule, we have a requirement to high light some string in double quotes. When we save the rule it is converting into HTML escape character sequence and I see while saving the rule itself conversion happened.
Thanks,
siva
HCL Technologies
NL
Hi Siva,
Couldn’t fully understand your problem. But we had a similar issue in which field values which required a single quote was getting displayed as escape characters which was resolved using this hotfix. Hfix-22647. You might want to try that out?
Vidya
Accepted Solution
Updated: 1 Apr 2016 6:54 EDT
Optum
US
Pega has provided us with a HOTFIX for this issue. Details are below:
HotFix Details
PARENT HOTFIX: HFIX-8829
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT
DEPENDENT HOTFIX(ES):[HFix-5106]
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT
J P Morgan Chase
IN
Hi Nicole/Ravi,
Could you please let me know.
How did you achieve this?
i am kind of facing same problem with replace all with
1) & to &
2) ( to (
Pegasystems Inc.
IN
Hi NarayanaSastry,
If the issue is with Field value, it will be solved by the hfix-22332 for PRPC 7.1.7.
I believe that you have already raised a post for the same. Link: https://collaborate.pega.com/question/localization-issue-when-using-getlocalizedtext-i-get-ascii-values-instead-local-values
Please continue discussion on the same.
Thanks,
Mounika
Pegasystems Inc.
US
Hello Nicole,
My first thought is, what is escaping them to begin with? Is the browser escaping the data on input (an HTTP debugger like Fiddler should help you see that)? Perhaps that's where you want to do the substitution. Definitely calling replaceAll() is going to require you to use the exact string (in quotes, otherwise it will be treated as a reference). You've got the string "@" and "@" above, so clearly trying to replace one string if the clipboard has the other will result in problems. Of course, "@" is "@" with the '&' replaced with the HTML code equivalent. That is one of the reasons I'm thinking you would be better off focusing on why your strings are having HTML code substitutions. The clipboard shouldn't be doing that.
Thanks,
Optum
US
Thank You Mike for your Response!
Thanks for shedding light on the limitation with the Function replaceAll. I now understand why it will not work.
I thought the issue was that, the characters ARE NOT being escaped. So, that when the "@" for example is given, it is displayed as its escape character sequence of "@". And that it is the codes job to see the @ sign, and replace it with the escape sequence, so it displays correctly.
But, are you saying that the @ should display normally? And that something extra is happening, in replacing it with the escape sequence??
Also this is a Pega Activity, which puzzles me that this issue would be occurring with it.
Updated: 1 Apr 2016 6:53 EDT
Optum
US
Hello All
Thank You everyone for your response! Pega has provided us with a HOTFIX for this issue. Details are below:
HotFix Details
PARENT HOTFIX: HFIX-8829
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT
DEPENDENT HOTFIX(ES):[HFix-5106]
- RULE-FILE-TEXT WEBWB PEGA_TOOLS_EVALDOMSCRIPTS!JS #20120423T111446.409 GMT