Getting error GlideDialogWindow is undefined when used in UI Action with client checkbox selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:05 AM
Hello,
I am getting an error GlideDialogWindow is undefined when used in UI Action with client checkbox selected. I have created a function named openw() in my UI action script which creates an object of it. And this function is called on click. Also I have created an empty UI page named "Set Time Range".
onclick: openw()
Script:
function openw() {
var dialog = new GlideDailogWindow("Set Time Range");
dialog.setSize(400,400);
dialog.setTitle("");
dialog.render();
}
Error which I am getting: "Uncaught ReferenceError: GlideDailogWindow is not defined" in browser console on triggering UI action in my App.
I am following exactly that is written in API reference - Client Side. Please guide me what am I doing wrong.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:07 AM
Are you using Service Portal by chance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:11 AM
Yes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:15 AM
OK, GlideDialogWindow isn't going to work with Service Portal. You are going to need to write/configure the widget to use spModal.
See this OOB example: (change YOURINSTANCE to your instance name.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 05:20 AM
Thanks for the suggestion. But I am using Jakarta version in which sp_widget is not present.