Why can't we close PegaSocial-Document case directly from screen?

Hello,

When we attach a file to a case, system automatically creates an instance of PegaSocial-Document class. This case can be opened in a separate OOTB screen as below. This thread comes on top of your case that you are working on right before. End user simply wants to close this Document thread but current PRPC does not seem to have that feature. End user doesn’t want to use browser’s back button because browser button is not supposed to be used in a web application in general. PRPC is no exception. Hopefully it should have a close (X) button on top right.

My question is why product team did not add such basic function. Any specific limitation? I believe eliminating an opened thread is a very fundamental feature that product must have.

Regards,

@CloeW938 The absence of a close button for the document thread in Pega is due to the design of the Cosmos UI, which uses a single page dynamic container. In this design, it is intended for users to navigate using the left-hand pane or browser buttons rather than closing the existing thread. However, you can customize the UI to add a close button if needed, but it is not a default feature in the Cosmos UI.

This answer came from a Pega gen-AI assistant using the below references. As a Support Center moderator, I reviewed the answer and references for accuracy:

PEGA Portal issue with close button

Close button on case redirects to Home page instead of previous landing page fro

*** Pega 8.8 documentation link pointing to ‘Browser Back Button Functionality’ added after SME comment ****

Creating and managing cases

@MarijeSchillern

Thanks for the response. However, it is very painful for customer to click menu in left pane to come back to the same page. So I guess everyone would use browser back button. I thought browser back button is not supported. Actually most of web application in general won’t work well if browser back is used. Isn’t that true?

Can you please indicate official support statement regarding browser back button?

Regards,

@RichardMarsot can you answer this question?

@Rekha.Rani

Thanks for the info about Infinity '23. However, our customer is using Pega 8.8 and my question in the last thread was specifically about browser back button. Is browser back button supported by Pega? If yes, can you please indicate official support statement regarding browser back button?

Regards,

@CloeW938

several comments on this thread:

1/ Theme-Cosmos UserPortal and the UI-Kit pyCaseWorker portals are both using the single page dynamic container and are updating the page history when navigating to a new page - You can use the back button to get back to the previous pages - this is a very typical pattern in most web applications - You will not find a web site with a ‘close’ button.

2/ If you really want to add a close button on the document page, you can customize the harness and add it

3/ The default attachment widget will create a document and reference it - for some application, you don’t want to link to a doc object and want to attach directly to the case - in this case you can following this article to bring back the old widget How to bring back the old attachment utility in Theme Cosmos | Support Center

browser’s back button support is mentioned in several articles:

@CloeW938

I have created a “Close” button on Document screen as below. Close function itself works, but I was expecting that Work Object (in this example P-3001) is displayed. However, it seems user is taken back to Home screen. This is not what I want.

Here is how I created Close button.

Did I do anything wrong? Can I make case screen appear right after I close the PegaSocial-Document screen?

Regards,

@CloeW938

When you open up PegaSocial-Document work item, the previous case type (P-3001) Thread is already gone from the clipboard. So you would need to newly open P-3001 manually. Add another button (ex. “Go to associated case”) to open the case. The case ID is stored in PegaSocial-Document’s pyTopCaseID property.

Also, PegaSocial-Document work item can be created by itself without having any associated work item and you need to consider this pattern as well. It might be a good idea to control visibility so this button won’t be displayed if there is no associated case.

Thanks,

@CloeW938 What release of Pega are you on?

As mentioned by Marie in Cosmos single page design we replace the current Case to open the Document (As you know Document is a Case itself).

That said we have given a functionality in Infinity '23 where the Documents will be opened in a new tab by default and if user wishes to use the old behaviour they can override a when rule. Looks like this is something that might be helpful for you.

Regards,

Rekha