Support Article
Incorrect documents being displayed
SA-369
Summary
The user observes that occasionally attachements for the wrong work object are opened.
Error Messages
Not Applicable
Steps to Reproduce
1. Open a work object in a tab, containing multiple embedded pages.
2. Close the tab.
3. Open another work object using the same tab.
4. Observe that the new work object, has some embedded pages from the prior work object.
Root Cause
The application used multiple tabs.
The application had an embedded pageList on pyWorkPage. The developer determined that the clipboard for the embedded pageList had stale data from a previously closed work object tab.
The thread never got deleted when the tab was closed, and did not clean up the embedded pageList.
Resolution
The following local change was made:
A new activity PreClose was added to the work object class. Activity PreClose is a standard extension point that is empty OOTB. In the new PreClose activity the embedded pages used for the attachments were removed with a Page-Remove step.
Published March 10, 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.