Workspace AppShell TABs

IronPotato
Mega Sage

Hi All,

 

is it possible to somehow catch event when user clicks on TAB in configurable workspace or parent AppShell (pls see pic below)?

 

Problem that I'm trying to solve is that if user have pages open in TABs and there were many updates done by other users, changes are not reflected until user refresh the browser.

 

IronPotato_0-1732304697908.png

 

Any help would be appreciated.

 

Thank You.

 

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

No it's all cached. What you can do is use a record watcher data resource on any page you want to keep up to date and then either auto-refresh the data on the page or show a user message telling them to refresh.

 

That being said, your screenshot is showing a record page. If this is Service Operations Workspace I know their ootb record page already has record watcher functionality built in. If a record gets updated while you're not looking at it the tab should turn blue:

CleanShot 2024-11-25 at 08.55.15@2x.png

And then when you click into the details it'll have already auto-refreshed and shown which fields updated

CleanShot 2024-11-25 at 08.55.37@2x.png

If you're not seeing that you may want to make sure you're using the newest version of the record page.

View solution in original post

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

No it's all cached. What you can do is use a record watcher data resource on any page you want to keep up to date and then either auto-refresh the data on the page or show a user message telling them to refresh.

 

That being said, your screenshot is showing a record page. If this is Service Operations Workspace I know their ootb record page already has record watcher functionality built in. If a record gets updated while you're not looking at it the tab should turn blue:

CleanShot 2024-11-25 at 08.55.15@2x.png

And then when you click into the details it'll have already auto-refreshed and shown which fields updated

CleanShot 2024-11-25 at 08.55.37@2x.png

If you're not seeing that you may want to make sure you're using the newest version of the record page.

Hi @Brad Tilton ,

 

It's a custom workspace with custom pages, but it actually worked! It even knew which tab to refresh. Thank you very much!

It would be nice to have an event on these tabs, though, or some property on DRs that would ignore caching and re-trigger each time the page is ready.

 

Thanks again.