Using UI Action I want to open a Catalog Item in New Window

Priya Gautum
Kilo Guru

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

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Hi,

Check #2

-Anurag

-Anurag

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Priya Gautum 

Hope you are doing good.

Did my reply answer your question?

Would you mind marking the best matching answer as correct and helpful, to close this thread?

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Priya,

Any update on this?
Can you mark answer as correct, 👍 helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader