- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 10:49 PM
Hi all,
I've created an UI Action, setting up everything to work in Workspace, such as ticking the "Workspace Form Button" and "Format for Configurable Workspace" checkboxes.
This UI Action creates a record with default values, and I would like after creation to open this new record in another Workspace Page, basically routing the user to a different workspace page. To be more specific I would like to open this location "now/risk/risk/risk-assessment-main/{sys_id of the newly created record}".
Does anyone know if this can be done in the Workspace Client Script in the UI Action? Or do I need to use Declarative Actions or something else?
I've tried "g_aw.openRecord()", "action.setRedirectURL()", "g_navigation.open()", none of these worked.
Would appreciate any ideas.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:28 AM
In Workspace client script, can you try using, open("yourURL"); This should work.
Please mark as helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 04:28 AM
In Workspace client script, can you try using, open("yourURL"); This should work.
Please mark as helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 07:30 PM
Oh that works, but it opens a new browser window. Do you know if I can set the target, such as "_self" or something similar so it opens on the same workspace window?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 08:48 PM
For those wondering adding '_self' after the url argument worked just fine.
open("yourURL","_self"); // Opens on the same browser tab.
Thank you @Dibyaratnam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 08:14 AM
Yes, It did..