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

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

  1. Upgrade Pega Platform 7.3.1 to Pega Platform 8.2.1.
  2. Log in to Pega Platform 8.2.1 on Stage 1 environment.
  3. 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

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