Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Localization issue for columns with table joins in pie chart

SA-32773

Summary



Localization issue for Pie chart on portal- Labels are not getting translated from English to French.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create Report Definition.
  2. Use table joins.
  3. Use the columns of joined table in query.
     


Root Cause



When there are joins in report Definition, localization for the columns which are joined isn't happening

Resolution



1. Create required Field values in @baseclass Application ruleset.



 2.   Create New Control “LocalizedControl”  (+Create -> User Interface -> Control)

3. Put below code in control named as “LocalizedControl”
Code Snippet:-

<% if(tools.getStepPage().getStringIfPresent(".pxObjClass", false) == null || "".equals(tools.getStepPage().getStringIfPresent(".pxObjClass", false))) tools.getStepPage().getProperty(".pxObjClass").setValue("@baseclass"); %>
<%= tools.getLocalizedTextForString(".pyCaption", tools.getActiveValue()) %>

4.   Use above created control in Format “LocalizedControl”.



 

 

Published January 24, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us