Question
Pegasystems Inc.
JP
Last activity: 26 Oct 2015 8:40 EDT
How to detect whether a section is included with read only mode in another section (7.1.9)
I am trying to hide a button in below context.
Section A has a button: Btn1, which should be hidden in section B, and visible in section C.
Section B include Section A in read only mode (cell property Edit-options is set to "Read-only (always)")
Section C include Section A in editable mode (cell property Edit-options is set to "Editable")
I have tried below 2 ways using $mode-input keyword without success.
1. In Section A, set Btn1 visibility as: "$mode-input=true", however, Btn1 was HIDDEN in both Section B and Section C.
2. In Section A, add inline style for Btn1 as: <pega:when test="!$mode-input">display:none;</pega:when>, however, Btn1 was VISIBLE in both Section B and Section C.