Question
Last activity: 14 Sep 2020 17:07 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?


PEG
FR
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.


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.
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.
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?