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
- Configure a menu item with an activity to generate the pzInsKey followed by an Open Assignment action.
- 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:
- Add Hidden text input in the section where the Menu is present.
- In Navigation, configure the Refresh-This section with the activity which creates pzInskey.
- Select the 'Disable submit on refresh' checkbox. Post this, the Run Script action passes the pzInsKey to the custom function.
- 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>
Published January 2, 2020 - 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.