Report unable to sort by integer sourced by declare expression
In a report definition, sort (ascending or descending) on an integer property does not work. Calculation of this integer property value is performed using a declare expression.
Steps to Reproduce
- Create a property that is an integer.
- Calculate this property using a declare expression.
- Create a report definition Sort by this property.
- Display report definition in a section.
A report definition provided with a property attempts to find the column in the database that holds the property to execute it in SQL (not in Java). The report definition cannot directly filter records based on the expression defined in the PRPC layer.
For more information, refer to: https://community.pega.com/support/support-articles/sort-and-filter-not-working-property-declare-expression
Here’s the explanation for the reported behavior:
Sorting by a declare expression is not supported due to how report definitions are executed.
0% found this useful