Support Article
Refresh link on pyWorkToolbar does not work correctly
SA-13386
Summary
Clicking the refresh link on the pyWorkToolbar sometimes produces unexpected results. Instead of refreshing the currently open work object, it retrieves the next work object on the list, or performs some other operation.
Error Messages
Not Applicable
Steps to Reproduce
Click on the refresh icon on the pyWorkToolbar.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. Clicking on this link executes the HTML operation, window.location.reload. This actually refires the last executed command specified in the URL. So if, for example, the previous command executed a GetNextWork, clicking on the refresh link gets the next object to work on.
Resolution
This issue is resolved through the following local-change:
Create a local copy of the pyWorkToolbar and modify the pxLink control associated with refresh. Change the action so that instead of executing window.location.reload, it executes pega.u.d.submitWhenFail.
Published August 28, 2015 - 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.