Custom URL creation for opening a default layout group tab on copy and paste

I am working on a Pega Infinity 24.2 application using Theme Cosmos.

Current UI Structure

  • Case type: VVVCase
  • Case view contains pyCaseMain
  • Within pyCaseMain, there is a Layout Group
  • The Layout Group contains multiple Tabs
  • By default, when the case is opened, the first tab is selected.

Requirement

I need to provide a button in the case UI, for example Copy URL.

When the user clicks this button:

  1. The URL of the current case should be generated/copied.
  2. The URL should contain sufficient information to identify the specific tab that the user wants to open.
  3. However, instead of selecting the first/default tab, the application should automatically select and display the specific tab associated with the copied URL.
  4. The solution should work consistently when the URL is opened directly in a new browser tab/window or pasted into window

Hello,

I have not done it but theoretically it is possible. You generate the URL along with Tab Name as parameter in it, then, use a URL mapping rule to catch the URL and open the case. Before opening the case, set some property on the case based on the param that we have in the URL. Now, on your pyCaseMain , add a script/cutom control to automatically click the tab name based on the property that is set in the case.

But, this is over customization and will cause issues when you migrate to newer frameworks