- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:06 AM
I have a UI Action as a link on a form.
When clicked, the UI Action should open a URL in a new tab in the browser.
Seems like a simple thing, but I can't figure it out ...
In many cases the Community suggests window.open(url, '_blank'); -> don't work because not defined
Some suggest top.window.location = url; -> no reaction when executed
Then I found GlideNavigation - Client, but I can't make it work
My code:
function openURL() {
alert("Test"); //Popup ok, means the function is executed
url = 'https://google.no';
g_navigation.open(url); //No reaction and no error!
top.window.location = url; //No reaction and no error!
}
Can you give me a solution to this problem?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:58 AM
Hello,
All the codes provided above are working on my instance.
You can try below as well may be this one works for you:
g_navigation.openPopup(url);
If my answer has helped you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:13 AM
Hello,
Try below code
function openURL() {
alert("Test"); //Popup ok, means the function is executed
var url = 'www.google.com';
window.open(url,'_blank');
}
If my answer has helped you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:24 AM
--
Any idea on what I'm doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:27 AM
This is the UI Action configuration:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:58 AM
Hello,
All the codes provided above are working on my instance.
You can try below as well may be this one works for you:
g_navigation.openPopup(url);
If my answer has helped you in any way please mark it as correct or helpful.