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

Relative date fields are localized incorrectly

SA-62395

Summary



Using relative date filters, if the relative date dropdown is not selected, the values display in the correct format. However, if the dropdown is selected, display of values does not consider the selection and the change of application locale.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Configure a repeating grid with a date column
  2. Configure a button to change the locale using 'UpdateLocaleSettings' setting 'useLocale' to en_CA or fr_CA
  3. Select the filter option in either of the locale for the column and select the 'relative date dropdown
  4. Change the locale using the locale button. The relative date values display according to the previous locale


Root Cause



A defect in Pegasystems’ code or rules. The localized field values are present in the localized ruleset for the pySymbolName property. However, the dropdown source attempts to fetch the localized field values from the pyCaption property. 


Resolution

  1. Apply HFix-44555 and run the localization wizard
  2. Clear the data page that populates the dropdown values
  3. Add an action and call runActivity to clear the actions for English and French locales
  4. In runActivity, clear the data page using the below code:

    pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage("D_DisplayTimePeriod"); 
     

Published September 13, 2018 - 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