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

Declare expression filed becoming editable on layout refresh



Declare expression target property is becoming editable on respective layout refresh. 
User has configured two dynamic layouts in a section, on change property1 in layout1 refreshing the layout2. 
In layout2, user has configured a declare expression for one property. Initially the target property is displaying as readonly, however when property1 value is changed in layout1, layout2 is getting refreshed and declare expression field becoming as editable.

Error Messages

No error message

Steps to Reproduce

1. Configure a dynamic layout with one property. 
2. Configure another dynamic layout with some properties and also configured the declare expression for one of the property. 
3. For layout2, add refresh condition as property changes(property in layout1)

Root Cause

A defect in Pegasystems’ code or rules : pzGenerateSimpleLayoutHTML RUF

When dynamic layout is configured with Refresh When, all the declare expressions are not being added into Map. 
Because of this when' refresh when' happens this map returns null and it becomes editable


Perform the following local-change:

Set edit options as
read-only always in presentation tab in cell properties panel for the property.

Published March 23, 2016 - 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