Can we open a Workspace page from UI Action

Jefferson
Kilo Sage

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 

1 ACCEPTED SOLUTION

Dibyaratnam
Tera Sage

In Workspace client script, can you try using, open("yourURL"); This should work.

 

Please mark as helpful if it helps.

View solution in original post

6 REPLIES 6

Dibyaratnam
Tera Sage

In Workspace client script, can you try using, open("yourURL"); This should work.

 

Please mark as helpful if it helps.

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?

For those wondering adding '_self' after the url argument worked just fine.

open("yourURL","_self"); // Opens on the same browser tab.

Thank you @Dibyaratnam 

Yes, It did..