Posted: 2 Feb 2016 15:31 EST Last activity: 5 Feb 2016 14:02 EST
How to use same thread when using openWorkByURL js function
A pop up windows opens in Thread1. The pop window is a search window and has a listview with the search results. Onclick of listview row a js function is invoked. The js function in turn invokes openWorkByURL. openWorkByURL opens a harness in the main portal window, but the harness opens in Thread2.
Is there a way we can open the harness in the main portal window from the pop up window on the same thread (Thread1)?
Is this a custom script that you are using which runs openWorkByURL? I think you may get better results if you use the UI action list to both open the search window and then open the work item.
You do not state which version of PRPC you are using. The answers to your question can vary wildly depending upon the release. You should always specify the version (e.g., 7.1.6?) when issuing such a post.
Yes, it is a custom js function which runs openWorkByURL for listview row click event. Though we are using openWorkByURL js function, our requirement is not to open any work item but to open a harness on the main portal window (on the same thread as that of the pop up window) with the details of the record clicked on the listview from the pop up window.
Are there any js functions where we can pass the thread name as the parameter along with the url to open harness on the main portal on the specified thread?