Support Article
getLocalizedText does not work properly
Summary
Configure an activity to Perform concatenation of getLocalizedText() of two field values. It does not work when running the activity standalone or through the agents.
@(Pega-RULES:Utilities).getLocalizedText(Value1, pyCaption, tools) + @(Pega-RULES:Utilities).getLocalizedText(Value2, pyCaption, tools)
Error Messages
The localized values for the field value are not invoked. Instead the field value name gets printed in the log message.
Steps to Reproduce
Configure an activity in which concatenation of getlocalizedText for two field values is done and run the activity to print the result.
Root Cause
The step page like SomePage.PageList(<LAST>) do not work with the getlocalizedtext() because the field value is checked in the dictionary with step page class.
Resolution
Perform the following local-change:
Local.FV1 = getLocalizedText(1st field value);
Local.FV2 = getLocalizedText(2nd filed value);
TempVar = Local.FV1 + Local.FV2.
Give the step page as the page in which the field values are defined and declare it in Pages & classes.
Above local change works for single page but it does not work for Page List page.
Using the step page like SomePage.PageList(<LAST>) is not supported in PRPC 6.3 SP1 and the issue is fixed in Pega 7.2.
Published April 13, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.