Support Article
Turn editing on feature missing in Application Studio
SA-83282
Summary
The 'Turn editing on' feature is missing in the Application Studio post upgrade to Pega Platform 8.2.1.
Error Messages
Not Applicable
Steps to Reproduce
- Upgrade Pega Platform 7.3.1 to Pega Platform 8.2.1.
- Log in to Pega Platform 8.2.1 on Stage 1 environment.
- Switch from Developer Studio to Application Studio.
Root Cause
The feature was missing because the below condition was not satisfied in pzRuntimeToolsInclude;
<pega:when name="pzIsPegaExpress">
<pega:choose>
<pega:when test="pyDisplayExpressEditOptions && pyDisplayExpressTopBar">
<% tools.putParamValue("isEditOptionsEnabled", "true");
tools.putParamValue("displayRuntimeToolbar", "true"); %>
</pega:when>
<pega:when name="pxUserHasDeveloperPortalAccess">
<% tools.putParamValue("displayRuntimeToolbar", "true");%>
</pega:when>
<pega:otherwise>
<% tools.putParamValue("displayRuntimeToolbar", "false");%>
</pega:otherwise>
</pega:choose>
</pega:when>
pyDisplayExpressEditOptions is true by default
However, pyDisplayExpressTopBar from Data-Portal class requires the user to have the role of ExpressUser and ExpressMgrTools (either the framework CustomerService level or Application level)
HasExpressUserRole > Lib(Pega-RULES:Default).HaveRole(this,"CS:ExpressUser") or Lib(Pega-RULES:Default).HaveRole(this,Application.pyProductName+":ExpressUser")
AND (note the boolean condition)
HasExpressManagerToolsRole > Lib(Pega-RULES:Default).HaveRole(this,Application.pyProductName+":ExpressMgrTools") or Lib(Pega-RULES:Default).HaveRole(this,"CS:ExpressMgrTools")
However, in the Clipboard, application.pyProductName displayed as Application1.
As a result, the condition,
Lib(Pega-RULES:Default).HaveRole(this,Application.pyProductName+":ExpressMgrTools")
resolved to the below,
Application1:ExpressMgrTools
Whereas, the user had the Application2:ExpressMgrTools role.
Similarly,
Lib(Pega-RULES:Default).HaveRole(this,"CS:ExpressUser")
or
Lib(Pega-RULES:Default).HaveRole(this,Application.pyProductName+":ExpressUser")
resolved to the below,
Application1:ExpressUser
The user had the Application2:ExpressUser role.
Resolution
Perform either of the following local-changes:
- Add the CS:ExpressUser and CS:ExpressMgrTools roles to the access group.
- Create and add the Application1:ExpressUser and Application1:ExpressMgrTools roles cloned from CS:ExpressUser and CS:ExpressMgrTools respectively.
Published August 17, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.