ReferenceError: GlideDialogWindow is not defined

xiaix
Tera Guru

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();

      };

}

find_real_file.png

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.

8 REPLIES 8

Geoffrey2
ServiceNow Employee
ServiceNow Employee

Since it's in a scoped app, try global.GlideDialogWindow()


find_real_file.png


find_real_file.png


Hi david,


Did you find answer for this.?


Yeah, you can't pull up UI pages in the Service Portal.