- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2016 09:27 AM
I am trying to open a URL in a new tab/window in the client script of a UI action. Due to it being a scoped application, window.open(url) does not work. What alternative is there for window.open in a scoped app?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:15 AM
Found that there is an API called g_navigation through which we can perform some DOm related tasks, e.g. reloading the page, opening a popup etc. I couldnt find the documentation for this API though.
For my requirement, i used the following code in my client script:
g_navigation.openPopup(url);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2016 09:49 AM
Hi Jivan,
I do not know if there any such apis available Out of the Box to achieve window.open functionality.
I wanted to only mention, there is a way you can opt out this restriction for the scoped app if there is an absolute reason.
You need to create below property to set its value to false.
[scope-name].glide.script.block.client.globals=false
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:11 AM
Hi Srini,
I created the property and it worked like a charm. However, since accessing DOM is forbidden by default by platform, i am going to look for other ways and will keep this as last resort if i am unable to find any other alternative.
Appreciate the quick response, thanks!
Jivan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2016 09:59 AM
Hey Jivan,
Just to add, Please go through the below blog and comment section for more info.
FujiForty - DOM: Disabled Object Model — CAVUCode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:16 AM
Thanks Pradeep, very helpful article
Jivan