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

Sorting on DisplayOrder incorrect for OptionMap DataTable

SA-87951

Summary



The PegaPS-Int-Config-OptionMap out-of-the-box DataType has a property called DisplayOrder(Type text) which sort incorrectly.

For example,

The values 1, 2, 10 are sorted as 1, 10, 2.



Error Messages



Not Applicable


Steps to Reproduce

  1. Enter data in PegaPS-Int-Config-OptionMap DataType.
  2. Enter some rows and inclue the values 2, 10, 1 in the DisplayOrder field. 
  3. Perform a sort by running the out-of-the-box report definition PegaPS-Int-Config-OptionMap DataTableEditorReport or the D_PGPOptionMapList DataPage.


Root Cause



A defect in Pegasystems’ code or rules

The DisplayOrder property is a text data type and is mapped to the character column in the database. For text values, the sorting is as observed: 1, 10, 11, 2.
Changing the format value in the report definition will not work, because the Sort functionality is not applied on the formatted values. It is applied only on the stored database values.


Resolution



Perform either of the following local-changes in the Data Designer:

Export the records and save the CSV file to backup the records prior to performing either of the following:
  1. Add a new property of type Integer
  2. Change the property type of DisplayOrder to Integer

Published December 2, 2021

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