Question


SAP NS2
US
Last activity: 26 Jul 2017 7:31 EDT
getLocalizedText - not working
I am trying to localize History- pyMemo property in an activity and using getLocalizedText function as @(Pega-RULES:Utilities).getLocalizedText( .pyMemo , "pyHistoryMemo" , tools). This is returning pyMemo property as it is and not localizing. pyMemo property has value "ChangeStageFlowShape Create Application App Reviewed"
Any comments if this function should be used differently?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


SAP NS2
US
Issue resolved: Needed step page for Work- class. Thanks for the help.
@(Pega-RULES:Utilities).getLocalizedText( .pyMemo , "pyHistoryMemo" , tools)


Pegasystems Inc.
IN
Hello Haroon,
Thanks for posting your query in PSC :)
Can you try the below options if it works for you?
1. Create a field value - ABC
2. Set the field Name as your value or something like pyCaption
3. Enter the text you want to refer for the above field value.
4. Now use the function as @(Pega-RULES:Utilities).getLocalizedText("ABC", "pyCaption", tools).
If it does not work, provide me with below information so that I can create a use case at my end:
1) Pega Version
2) Screenshots showing the configurations made including the usage of getLocalizedText in an activity(assuming this is custom).
Regards,
Rincy


SAP NS2
US
Hi Rincy, I tried this earlier today and it worked fine. The issue is pyHistoryMemo - that doesn't work. This is function call from activity to set a property.
@(Pega-RULES:Utilities).getLocalizedText( .pyMemo , "pyHistoryMemo" , tools)
Currently pyMemo value is "ChangeStageFlowShape Create Application App Review" - I am trying to localize this.
there is field value as follows: Work- • pyHistoryMemo • ChangeStageFlowShape Pega-ProcessEngine:07-10-13
So it works with ABC pyCaption but doesn't work with pyHistoryMemo.


Pegasystems Inc.
IN
Hello Haroon,
Thanks for the response.
I understand that you are trying to localize pyHistoryMemo and not pyMemo. For this, you have created Field value as below:
Work- • pyHistoryMemo • ChangeStageFlowShape
As requested earlier, provide me with below information:
1) Pega Version and locale used to test localization. I find a Support article mentioning in
Pega 7.1.9, pyHistoryMemo, field values are not localized in German locale in case history.
2) Screenshots showing the configurations made including the usage of getLocalizedText in an activity. This is to see if you are using 'Change Stage' flow shape.
Regards,
Rincy


SAP NS2
US
There is pyMemo property in History- class and I am trying to localize .pyMemo property using pyHistoryMemo field value.
Work- • pyHistoryMemo • ChangeStageFlowShape is already defined in Pega (screenshot attached). There are many other pyHistoryMeno translations already defined in Pega-RulesEngine:07-10-01
Pega version: 7.1.6


SAP NS2
US
All other translations are working fine including pyCaption, pyMessageLabel etc. Only pyHistoryMemo are not translated for any field value (regardless of class, ruleset).


Pegasystems Inc.
IN
Hello Haroon,
Thanks for the response.
In OOTB Pega 7.3, the field value of pyHistoryMemo is defined as below
Hello Haroon,
Thanks for the response.
In OOTB Pega 7.3, the field value of pyHistoryMemo is defined as below
which has the translated label as below:
"Case moved from {1 CaptionLookup} to {2 CaptionLookup} via Change Stage flow shape. "
I created a field value in my application's ruleset as below:
which has the translated label as below:
"ChangeStageFlowShape Create Application App Review "
In the flow, I have added the Change Stage flow shape. Called the custom activity(LocalizeAct) on the preprocessing of the FlowAction(of the second stage).
Refer the custom activity defined as per below screenshot:
At runtime of the use case, I see the localized text appearing. Refer the below screenshot:
Could you modify the parameters of the getLocalizedText function as per above screen (of custom activity), assign it to Memo property and let me know if this meets your business requirement.
PS: I have created the use case in Pega 7.3.
Regards,
Rincy
Accepted Solution


SAP NS2
US
Issue resolved: Needed step page for Work- class. Thanks for the help.
@(Pega-RULES:Utilities).getLocalizedText( .pyMemo , "pyHistoryMemo" , tools)