How do I get target destination to open in a new window?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 02:56 PM
In my list I'm opening a destination page and passing the table and sys_id. But how do I get the destination to open in a new window?
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 03:13 PM
If you have the url then you can do this using an achor tag by adding target="_blank" like so
<a href="www.example.com /example.html" target="_blank">link text</a>
Else you can have an onclick function that takes you to the client script in which you would format the url and use this window.open("https://www.w3schools.com");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 08:36 AM
If you are planning to open in new Workspace Tab, you can emit an event from Client script:
api.emit("NAV_ITEM_SELECTED", {
"redirect": true,
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 09:23 AM
Kirankumar, I don't think I understand how, in this example, you're directing the output to a new browser window. As I understand it the route attribute tells what Page (in my case) I want to send the user to. Good so far. But that will open in the current window unless... what?
Perhaps you mean there is a url param that will cause the browser open the page in a new window. I know of no such parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 03:12 PM
If I use link to destination and use this object it opens in a new window. Oddly, setting the title doesn't do anything.