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

Used format does not work in reports

SA-81418

Summary



For properties with technical codes (for example, property = Symptom, value = 100), 'field value' table type with a reference class and field name are used. These field values contain functional values (for example, 100 = Damaged).

In a Correspondence fragment, a non out-of-the-box format is used to display the functional value. When using the same format in a report, the format does not work.

In the layouts, this works when using the localized field option.



Error Messages



Not Applicable


Steps to Reproduce

  1. Create a property with field value reference (property definition).
  2. Create a report using the property in the select list.
  3. Use the format (format definition) on the property or column.
  4. Run the report.


Root Cause



An issue in the custom application code or rules.
Pega does not support localization with field values.



Resolution



Perform the following local-change:

Add the customized code as a new format:

<%
String localizedLabel = pega_rules_utilities.lookup(
      "pyLocalizedValue", "Rule-Obj-FieldValue", "pyFieldName", 
      pega_rules_utilities.lookup("pyFieldName","Rule-Obj-Property" ,"pyPropertyName",tools.getActive().getName(),tools.getActive().getParentPage().getClassName()),        "pyFieldValue", tools.getActiveValue(), 
      pega_rules_utilities.lookup("pyFieldClass","Rule-Obj-Property" ,"pyPropertyName",tools.getActive().getName(),tools.getActive().getParentPage().getClassName()), 
      "", "true");
%>
<%=localizedLabel%>

Published August 19, 2019 - 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