Question

2
Replies
3231
Views
Chunzhi_Hong Member since 2013 138 posts
PEGA
Posted: October 26, 2015
Last activity: October 26, 2015
Closed
Solved

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.

User Interface
Moderation Team has archived post
Share this page LinkedIn