ReferenceError: GlideDialogWindow is not defined

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 05:19 AM
function ($scope)
{
$scope.bcc_deptAdminPanel = function(val)
{
var mwW = window.innerWidth;
var mwH = window.innerHeight;
var dialog = new GlideDialogWindow('bcp_choose_bcc_to_edit');
dialog.setTitle('');
dialog.setPreference("mwW", mwW);
dialog.setPreference("mwH", mwH);
dialog.setPreference("myVar", val);
dialog.render();
};
}
I'm converting a lot of the ESS (Employee Self Service) code to the new SP (Service Portal). I call a great number of UI pages for a lot of things, but it seems that I can't call UI pages from the new Service Portal?
The above depicted code is from a Widget "Client Script" section.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 05:22 AM
Since it's in a scoped app, try global.GlideDialogWindow()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2016 05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2017 07:37 AM
Hi david,
Did you find answer for this.?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2017 08:44 AM
Yeah, you can't pull up UI pages in the Service Portal.