Closed
Solved
Referring data of a page present in different TAB Thread
Hi All,
I am working on Pega6.2
I have a requirement where I need to refer to the data of a page which is in a different TABTHREAD.
For e.g.
I need to refer data of say Page1(present in TABTHREAD2) but my present TABTHREAD is TABTHREAD4.
Is there a way i can refer to the data of Page1 from TABTHREAD4?
***Moderator Edit: Vidyaranjan | Updated Categories***
The ideal way to accomplish this is have your report definition data to any of the requestor level data pages. If that doesn't serve the purpose , your can try something as below
PRThread stdThread = tools.getThread().getRequestor().getThread("<SOURCETHREAD NAME>");
ClipboardPage SourcePage = stdThread .getPage("<pageFromSourceThread>");
ClipboardPage DestinationPage = tools.createPage("<ClassName>","DestinationPage");
boolean hasReplaced = Destinationpage.replace(SourcePage,false);