- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 02:10 AM
Hello Experts,
I have created a UI action on story form (rm_story) to create test case (tm_test_case), which is working fine . Now I want to open that in new Tab of the browser , for that I used below code and it is not working . When I used Log it is showing "com.glide.script.RhinoEcmaError: "window" is not defined."
Note : Isolated script : false . Can anyone please help here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 03:27 AM
Hello @Prashant Kumar6
try this once :-
g_navigation.open(url);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 04:30 AM
Hello @Prashant Kumar6
This link might help you on this How to Open an URL in New Window from UI Action?
Please mark Helpful if you find this useful.
Thank you
Praneeth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 03:47 AM
Hi @Prashant Kumar6,
It should work for you.
gs.setRedirect(url, '_blank');
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 04:07 AM
Hi @Sagar Pagar
Unfortunately , it does not open in a new tab. I believe window.open(); should work dont know why this is not working .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 03:27 AM
Hello @Prashant Kumar6
try this once :-
g_navigation.open(url);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 04:30 AM
Hello @Prashant Kumar6
This link might help you on this How to Open an URL in New Window from UI Action?
Please mark Helpful if you find this useful.
Thank you
Praneeth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 07:09 AM
Yes , I end up creating an Script include and Ui action to achieve this with window.open(url,'_blank') and now it is working . Thanks all . Cheers !