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

Edit Option 'Read Only' doesn't propagate to child sections

SA-28666

Summary



Edit Option 'ReadOnly' doesn't propagate to child sections and if the conditions are set for nested sections, then edit mode of the parent is not considered when evaluating the edit mode of the child.

Error Messages



Not Applicable

Steps to Reproduce



Scenario-1: Edit option does not propagate to child sections.
Create section a with a dynamic layout.
Add section b to the dynamic layout, and in the Presentation tab, make it read-only.
Add section c to section b.
Add controls to both section b and c.
Add read-only conditions to controls in both section b and c.

Expected behavior: Conditions should evaluate to false. Section B and C to be displayed as readonly.
Actual Behavior: Controls in section b will still be read-only, controls in section c will be editable.

Scenario-2: Edit mode of the parent is not considered when evaluating the edit mode of the child.

1) SectionA includes SectionB with Readonly condition 1 
2) SectionB includes SectionC with Readonly condition 2 
3) SectionC includes SectionD with Readonly condition 3 
4) SectionD includes two text inputs without any Readonly condition auto 

Actual Behavior: Section D is displayed as editable as per condition 3. 
Expected Behavior: Section D should be displayed as readonly whenever condition 1, condition 2 , condition 3 is evaluated to true. 


Root Cause



For Scenario-1: The pzsectionBodyIncludeInCell function removes the "SectionReadOnly" param after it has included the section. This causes a problem in any trailing controls of the parent section because the "isControlEditable" API incorrectly depends only on "SectionReadOnly" and the read-only when/expression. The "isControlEditable" API needs to additionally call the "hasInputEnabled" API to check the edit mode of the control.
For Scenario-2: In PZSECTIONINCLUDEINCELL rule, consider the edit mode of the parent when calculating the edit mode of the child section included inside a cell.

Resolution



This issue is resolved by hotfix item HFix-29793. 

Published October 18, 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