Support Article

Work tab does not display properly after a browser refresh



The work tab does not display the appropriate harness when multiple work items were opened and F5 was pressed. The active tab, however, shows the correct tab label. The labels for the other work tabs do not update until selected.

Error Messages

Not Applicable

Steps to Reproduce

  1. Open multiple work items.
  2. Press F5.

Root Cause

An issue in the custom application code or rules.
The harness was configured with custom HTML to display a second harness within an iframe. When the browser was refreshed, only the second harness displayed. The tab labels were set using the pega.u.d.setLabel() JavaScript function, which the code did not execute until the tab was selected.


Perform the following local-change: Remove the code that embeds the second harness in an iframe. Call the section from that harness instead.
In this instance, there was additional custom code that must be applied to the section, so a non auto-generated section was created to include the code in the section being referenced.
Use a data transform and declare expression instead of the JavaScript code. Create a data transform rule to set the pyLabel property as desired, and create a declare expression rule to set the pyDocumentTitle property to the value of pyLabel.

Published March 18, 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.