- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 08:13 AM
Trying to open GlideDialogWindow from UI Action in scoped application from Incident form. Get "page not found" error inside modal window.
UI Action has only client-side code.
UI Action code:
function onTranslateIncidentNoutes() { | |
var dialog = new GlideDialogWindow("my_unique_dialog");
dialog.setTitle("Translated comments and work notes");
dialog.setSize(750, 750);
dialog.setPreference("incident_id", g_form.getUniqueValue());
dialog.render();
return false; |
}
UI Page name: my_unique_dialog.
UI Page category: General
UI Page Direct - unchecked
UI Page HTML:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate var="jvar_id" expression="RP.getWindowProperties().get('incident_id')"/>
<p>$[jvar_id]</p>
</j:jelly>
Error screenshot:
As I understand system couldn't find my UI Page. But I don't understand why?
What I've missed?
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 06:28 AM
Hi Yarick,
Using the endpoint in my above screenshot worked in my test case like this:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 08:50 AM
Yes, thank you, I've seen it. I opened successfully it in new browser tab(url: https://my-instance..service-now.com/endpoint). And it works(I removed getting parameter on the UI page and left only static html). Also I putted it in textbox on error page and gone on it. It works too. Also I tried to create dialog window in the following way:
var dialog = new GlideDialogWindow("my_endpoint");
Unfortunately unsuccessful.
How can I use it for opening my UI Page in modal window?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 11:10 AM
Thank you. I've already found workaround using
getTopWindow().popupOpenFocus(); method