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

Incorrect Display of Checkbox when using Declare Expression

SA-9688

Summary



Developer has configured a boolean property in readonly mode in a section and a declare expression is also configured on it, so that based on the result from declare expression either checkbox selected or unselected image should appear. But ‘true’ or ‘false’ text is displaying instead of image.

Error Messages



No error message, but the string "true" instead of an ticked checkbox icon.

Steps to Reproduce



1. Create a boolean property and a declare expression on it.
2. configure this boolean poperty in a section in read only mode.
3. Create a property which is used for the calculation in declare expression.
4. run the flow and give some value to the second property suchthat the declare expression returns true or false. Based on this result boolean property should display either checkbox selected or not.


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules.
GetTargets activity is being called in this functionality which intern uses pzFormatControl  Rule utility function. This will format the control at runtime which needs to be displayed on screen. As per the existing code in this RUF, present it supports Text, Date and Number values only. In this case we are using Boolean property which is not supported.
 

Resolution



Submitted product enhancement request item FDBK-11296

This issue is resolved through the following local change:

Instead of using Declare Expression rule, if we configure “Refresh Section + DataTransform(which sets the Boolean Property value based on a When condition)” without the Declare Expression, this way the “True/False” Read-Only format would work.
 
 
 

Published June 12, 2015 - 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