Question

1
Replies
39
Views
Close popover
Bin Xu (GAVINHSU)
Mediatek Inc. China

Mediatek Inc. China
CN
GAVINHSU Member since 2011 22 posts
Mediatek Inc. China
Posted: June 8, 2020
Last activity: July 14, 2020
Solved

How to control the edit option of customized controls

We used to use PEGA 7.1.8, and just upgraded to PEGA 8.3.1 recently.

After the upgrade, we found some of the customized controls not working correctly.

And here is the scenario:

  • A SectionA includes another SectionB, the edit option was configured to Readonly (always).
  • SectionB includes another SectionC, while the edit option was configured to Readonly (when rule), and a WhenA rule was specified for the When rule.
  • The SectionA was included in the Review harness, and it's expected that all contents in SectionA, SectionB and SectionC should be displayed as readonly.
  • There's some chance that the WhenA could be evaluated to false.
  • It turns out OOTB controls in the SectionC was displayed as readonly, but customized controls in the SectionC was displayed as ecitable.

In the customized control, we're using $mode-input to check whether it's input mode or not:

<pega:choose>
	<pega:when test ="$mode-input">
	  Editable
	</pega:when>
	<pega:otherwise>
	  Readonly
	</pega:otherwise>
</pega:choose>

Truns out the "Editable" is always been displayed, instead of "Readonly".

So, please help.

Thanks.

Pega Platform 8.3.1 User Experience Manufacturing and High Technology Lead System Architect