Hi
User logs in as an access role with a customized portal. When the user opens a case from a Dashboard or worklist/workqueue the case opens and functions normal. But when a user hits the close button to close out of the case, the display goes back to Default Home landing page and not back to the Dashboard or worklist/workqueue where the case originally started from.
Currently using 8.4.5 version with Theme Cosmos skin 01.01 version.
Thanks in Advance.
Kalyani
@NagaSaiKalyaniR a close button will usually call the function pega.desktop.activateDocument(“0”) to go back to the home page
in your case, it seems that the behavior that you want is similar to clicking on the back button in the browser - in this case, you can call the function history.back()
Hi @RichardMarsot
We are calling “Canel” action “onclick” on close button not the default close button.
@NagaSaiKalyaniR because the UserPortal in Cosmos Theme is a single page dynamic container (SPA) - similar to pyCaseWorker in ui-kit, we do not recommend to show a close button - the user should use the browser buttons (back and forward) and the browser history to navigate back to the previous pages. As such Theme- Cosmos does not expose any cancel button
using the cancel or close action will lead to the same outcome, e.g. the home page is being rendered - this is the behavior of the single page dynamic container.
@RichardMarsot
Thanks Richard for your response
Hi @NagaSaiKalyaniR!
Did @RichardMarsot’s reply answer your question? If so, please click Accept Solution to close out your question.
Thanks in advance!