
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 04:06 AM
Hi All
Can you please let me know how can we open a catalog Item in a new window by clicking on UI Action.
I wrote-
var queryString = '/com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=8dde7c2c4f5bea008ec7bc218110c7c4';
action.setRedirectURL(queryString);
but it is opening in the same window.
Regards,
Pragati
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2019 11:24 PM
Hi Priya,
Are you using client side UI action or server side?
If you are using client side then this is possible;
window.open('your url','_blank');
if server side then it seems difficult
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 04:16 AM
Hii Pragati,
You can use this javascript functiuon to do the same
window.open(url,'_blank');
-Anurag

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 05:25 AM
Hi Anurag
Can you please explain a bit more how can we use this.
It is not working for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 05:31 AM
This is a client sid code, so your ui action needs to be client=true
and build the url and pass it in the first parameter in below
window.open(url,'_blank');
_blank here tells it to open in a new tab , it is the target argument
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2019 03:50 AM
Hi,
Just checking in of this worked or not?
-Anurag