Support Article
Declare expression filed becoming editable on layout refresh
SA-21226
Summary
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
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.