Support Article
New Thread is created on user click
SA-18611
Summary
User had a list view configured for multiple select is a button on the top of the list view, on the click of this button they are invoking an activity to delete a record.
However,the record is not deleted.
On click of the button they are calling a function which does the following:
openSpace("Work",url,"formbyurl");
On tracing found that there was a different thread created because of which pages created by the current thread is not accessible to the other thread and hence records are not deleted.
Error Messages
Multiple threads are created which causes the clipboard value created by one thread inaccessible by another thread.
Steps to Reproduce
1. Create a list view for multiple select.
2. Create a button and on-click of that button deleted the selected item by running a activity using openSpace, so that it gets loaded into the work area of the composite portal.
Root Cause
OpenSpace creates new thread and opens a new document. This is expected.Resolution
Local-change to use pega.u.d.submit(url);
Following are the other approaches:
- Use "Launch harness" action with "Replace current" option
- Change list views to grids with RD bound wherever possible
Published January 31, 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.