Open URL in Window opens another WO and overrides existing there
When running through the DuplicateSearchCase use case, suppose when there is a case C-33 created with the same values as that of other created cases:
Then in the DuplicateSearchCase section of C-33 work object, one can see C-31, C-32, C-20 as duplicates.
If the clipboard is observed, initially it has C-33 thread which is as expected.
Now open any of the duplicate cases from C-33 case, say C-20.
Ideally, one should see two threads in the clipboard now, one for C-33 and other for C-20.
But the issue here is, the C-20 threads gets created overriding C-33 thread.
Though user closes C-20 case window, the thread still exists in the clipboard.
And Since the context of C-33 has been lost from the clipboard, user will not be able to perform any action on the opened WorkObject (WO).
The duplicate case opened opens in a new window which overrides the existing thread.
Steps to Reproduce
1. Create a flow which includes DuplicateSearchCase smart shape to identify the duplicate cases.
2. On parallel create "Must Match" Conditions for that case type rule.
3. Run the scenario and observe the behavior.
The duplicate case opened opens in a new window which overrides the existing thread of the currently opened WO.
Hence, unable to proceed further on the opened WO since the context of it is lost.
This is a known bug in this version and is fixed in Pega 7.2.1, by using "Open Work by Handle" instead of "Open URL in new window" on click of "pyID" link in "pyDuplicateSearchCases" section.
As per users requirement, each WO should open in new window instead of new tab.
Therefore, the change "Open Work by Handle" cannot applied in such scenario.
To resolve the issue, follow the below steps to modify "pyDuplicateSearchCases" section:
1.Add a new action "Run Data Transform" before the action "open URL in new window" on Click event of Link:
2. Here the data transform "MyDT" is used to set the parameter for URL formation.
Hence, create the data transform to provide parameters for the URL which is to be opened in new window.
Published January 20, 2017 - 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.