Question
Accenture India PVT Ltd
IN
Last activity: 9 Jun 2021 3:21 EDT
Convert text to Proper Case
We have a requirement to convert text to Proper case. Is there any OOTB function available in Pega 7.2.2?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hello,
I don't think there is. What do you mean by Text? Is it a file entering the system? Or a Text property somewhere you need to parse?
Blue Rose Technologies
DE
Are you looking for converting text or text property to upper case or lower case? If yes, we have toUpperCase and toLowerCase functions. For example toUpperCase("test") will give you TEST.
-
Lakindu Kariyawasam SANAPALA VENUGOPALSWAMY
Pegasystems Inc.
US
I don't think this is what the client is looking for. This is what proper case looks like. However, I did not find any equivalent OOTB string function available for this.
-
Shyju Valappil
Blue Rose Technologies
DE
Thanks for providing this details.
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
OOTB function is not available for this. Please find the below article which might be helpful.
Stratosphere Technical Consulting
US
One more option that is not in the link above is to use a Text Normalize rule in an activity step.
1. Create the Parse Normalize rule and change the Conversion Options dropdown to "Convert To Proper Case." The other options can be left blank and the only change will be the conversion to Proper Case.
2. In the activity, add a Text-Normalize method step with the created Parse Normalize rule. The Name is the Parse Normalize rule name, the Source is the property that needs to have Proper/Camel case, and the Target property is only required if you want the formatted text in a different property than the source for record keeping purposes.
Spaces, punctuation, and numbers all count as separators for words and the first character of every word after a separator will be capitalized.
-
Janmajay Adhikari Arvind Balakrishnan Rajendra Prasad Ega Ozge Demirci
BNYMellon Technology
IN
@DavidP_CSSA Thanks a lot. Works like a charm