- 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 06:42 AM
Finally, I got the code working 🙂
My intial code had a bug, as I failed to put var in front of
url = 'https://google.no';
With that fixed, g_navigation.open(url); did the job.
Thanks for your time and help 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:22 AM
Hi,
Ensure you make the UI Action Client checkbox to true and enter Onclick (field when you check Client checkbox) value as openURL()
then script will be
function callme() {
alert("Test"); //Popup ok, means the function is executed
url = 'https://google.no';
g_navigation.openPopup(url) //No reaction and no error!
top.window.location = url; //No reaction and no error!
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:26 AM
Ensure you replace callme with your function name as openURL() in the Onclick field.
It was a typo above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 01:42 AM
Tanks for helping out, but I still can't make the code work:
- Yes, Client is checked
- Yes, I have openURL() in the Onclick field
- Yes, I changed function name callme() to openURL()
- Yes, the function is executed, since the alert popup shows
But again none of the remaining commands give any reaction (not showing the URL and no error)
You can see the UI Action configuration in the image above ...