- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 09:28 AM
Hello everyone,
Is there a use case or configuration for the Workspace's Attachment panel that allows the preview page to open in a new tab of the current browser?
Current Behavior
- When you click on the attachment, the Workspace displays the document viewer tools on the same page without changing the URL.
Expected Behavior
- The document preview page opens in a new tab in the browser when you click on any attachment in the Workspace.
What Solution I've tried
- ❌ I created a new Action Assignment (Attachment action) to add a custom button in the action area, but it's not working because I can't retrieve the sys_id of the attachment from the Action Assignment, either in the client or server script, to open it in a new tab.
- ❌ I edited the Attachment components in the UI Builder to add a custom event when a user previews an attachment. This seemed to be the closest way to achieve my goal, but I still couldn't retrieve the sys_id of the clicked Attachment component. There's no payload indicating which attachment the user is trying to preview, so I can't open anything in a new tab.😔.
Any suggestions or ideas? Or is this the default behavior of the Workspace, meaning I can't change it?
Thank you.
Solved! Go to Solution.
- 3,200 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 03:05 PM
If you implement the action as a UXF Client Action and give the action new payload definition record a key of NAV_ITEM_SELECTED and a payload something like below, it should work.
{
"external": {
"url": "/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id={{attachmentSysId}}"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 10:00 AM
Any help please @Alisa Tipisova
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 08:22 PM
Please look into this Linkedin post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 03:05 PM
If you implement the action as a UXF Client Action and give the action new payload definition record a key of NAV_ITEM_SELECTED and a payload something like below, it should work.
{
"external": {
"url": "/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id={{attachmentSysId}}"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 03:05 AM
Hi, thank you, this solved the issue for me and Preview works as expected. Just one more thing - is it possible to do the same for Activity component?