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

"Empty Assignment Error" pop up on clicking worklist assignment

SA-21397

Summary



In a tabbed portal, after clicking from a work object tab to the worklist tab, clicking on another work object to open it sporadically results in a popup error.

Error Messages



"Empty Assignment Key"

Steps to Reproduce

  1. Open a work object in a new tab.
  2. Click back to the worklist tab.
  3. Click to another.

Root Cause

A browser limitation which results in a brief window of time between when the server has sent all of the data about a section refresh to the browser, but the browser has not completely processed all that data into the DOM. If a user triggers an action on the section during this window, stale / incorrect data is used in the action and errors can be seen.

Resolution



Perform the following local-change: 

1. Create a JavaScript (JS) file that contains a function similar to the following:
var openIfKeyIsPresent = function(handle)
{
if(handle != null && handle != "")
{
openAssignment(handle);
}
};
2. Add the JS file to your harness.
3. Modify the section that displays your worklist so the repeat grid’s on click action calls your function instead of the Open Assignment action.  The "handle" parameter should be passed the value of the pzInsKey of the assignment being opened.

 

Published March 25, 2016 - Updated October 8, 2020

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