Hi everyone,
I’m facing an issue in a Pega Constellation application and would appreciate any guidance.
Scenario:
- I have a Leave Request case type.
- Users enter Start Date and End Date while applying for leave.
- I have a Declare Expression that calculates .TotalDays based on the Start Date and End Date.
- The calculated value is displayed immediately on the UI, which is the expected behavior.
- After the case is submitted, the property is saved with the case. I have also optimized the .TotalDays property for reporting.
Issue:
When I use .TotalDays directly in a Report Definition, the column is always blank, even for newly created cases.
As a workaround, I added an Edit Column in the Report Definition using the Convert Decimal Text to Decimalfunction and assigned an alias. This displays the value correctly in the Report Definition.
However, in the Constellation Summary View, I cannot use this alias as a table column because it is not an actual property on the data object.
Questions:
- Why is the optimized .TotalDays property blank in the Report Definition even though it is calculated by a Declare Expression and saved with the case?
- Is there a supported way to expose a calculated Report Definition column (Edit Column/alias) in a Constellation Summary View? (ref - Property with Declare Expression Not Displaying Values in Report Definition )
- What is the recommended approach for displaying a Declare Expression calculated property in both a Report Definition and a Constellation Summary table?
Environment: Pega Constellation
Any suggestions or best practices would be greatly appreciated.
