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

Open Assignment on menu item displays Empty Assignment error

SA-93454

Summary



The Open Assignment action on the menu item displays an Empty Assignment Key error.


Error Messages



Empty Assignment Key




Steps to Reproduce

  1. Configure a menu item with an activity to generate the pzInsKey followed by an Open Assignment action.
  2. Click the respective menu item. Empty Assignment Key alert displays on the UI.


Root Cause



The Menu (Navigation) control does not support the ChangeTracker functionality. Hence, the Open Assignment action is unable to receive the pzInsKey's latest property value.


Resolution



Perform the following local-change:
  1. Add Hidden text input in the section where the Menu is present.


     
  2. In Navigation, configure the Refresh-This section with the activity which creates pzInskey.
  3. Select the 'Disable submit on refresh' checkbox. Post this, the Run Script action passes the pzInsKey to the custom function.


     
  4. Add the below script in the UserWorkForm.

    <script>

    function getvaluefortest(insHandle){
        var entryHandle = pega.u.property.toHandle(insHandle); 
        var selector = "[name='" + entryHandle + "']";
        var name = document.querySelector(selector);
        openAssignment(name.value);
      }

    </script>

Suggest Edit

Published January 2, 2020 - Updated December 2, 2021

Did you find this content helpful? Yes No

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.

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