Posted: 14 Jun 2017 8:12 EDT Last activity: 22 Aug 2017 10:07 EDT
how to return control back to default user portal page
In my application, we are using single work space for all the harness, When user open a work object and completes processing, we are closing the work object and from this control should automatically navigate back to Home screen/default portal page.
Below article illustrates this is a OOTB feature but is there a way to override the same.
By the details you provided we think your portal is configured like casemanager7 portal, on this portal when you close the current document, it takes you to the previous active document. This is expected behavior.
Solution-1) Configure pega.desktop.activateDocument(0); and Cancel OOTB actions on the close button.
Solution-2) Change the DC configuration of your portal to create top navigation(no frame) portal. In this portal on close/cancel of the document, it takes you to the home page.
Yes, you got it right. My application should behave like casemanager7 but with this modification.
Could you please elaborate on your solution 1 which sounds better.
How do i configure pega.desktop.activateDocument(0); ?
One more question- I have 2 links on my Portal Header
1. Search 2. Create Transaction.
When i click on Search , i have configured "pega.desktop.showHarness" and call my Search Harness with passing Param.replaceCurrent=true. This replaces existing thread.
When i click on "Create Transaction" , i have configured "Create Work" passing my flow and flow params. This is creating a new thread. Is this OOTB? If yes, how do i change to ensure system works only in one single thread?