- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 08:46 AM
Hello everyone,
We are starting with Universal Request and the button Create Request opens in Service Catalog in the ITIL view, we would like to make it open in our Service Catalog page in the portal view.
To accomplish that, I've modified the URL variable in the code below, but the page is being opened "within" agent view.
We would like to open in a new window without the agent view header.
Here is the code:
var url;
var activeCatalogsCount = sn_sc.Catalog.getCatalogCount();
if (activeCatalogsCount === 1) {
//url = "catalog_home.do?sysparm_view=catalog_default&sysparm_parent_table=" + current.sys_class_name + "&sysparm_parent_sys_id=" + current.sys_id;
url = "sp?id=sc_home";
}
else {
//url = "catalogs_home.do?sysparm_view=catalogs_default&sysparm_parent_table=" + current.sys_class_name + "&sysparm_parent_sys_id=" + current.sys_id;
url = "sp?id=sc_home";
}
action.setRedirectURL(url);
It's being opened like this:
the URL being opened is ending with this:
now/nav/ui/classic/params/target/sp%3Fid%3Dsc_home
Any help would be greatly appreciated.
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 11:03 AM
Hi @Luiz Lucena ,
To do that you need to run it client side.
g_navigation.openPopup(url);
should work.
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 12:57 PM
Hi @Niklas Peterson ,
That didn't work.
I've added the line "g_navigation.openPopup(url);" right after where I'm passing the url.
Also, when I check the box "Client" it didn't work at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2022 02:35 PM
Thanks, @Niklas Peterson , that worked but for us we had to leave the "Client" checkbox unchecked.