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
- Open a work object in a new tab.
- Click back to the worklist tab.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.