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

Did you try any workaround for this.? If yes, please suggest.



Because i have my UI page configured and i am using the same in catalog native view.


Ana Paula1
Kilo Contributor

Hi,



      Did you find a way to open an UI Page from the Service Portal? I have the same issue because due to an collaborate action trying to open a pop window (UI Page).


Nope, and you won't be able to.   UI Pages use Jelly, and you can't use Jelly on the Service Portal.   Any UI Page that I wanted to pull in, I've ended up converting into Angular and am SO GLAD for it too.  



Trust me, you really don't want to pull in old UI pages.   You can do everything in a SP Widget, plus so much more!


Ana Paula1
Kilo Contributor

Thank you for your help. So I will go further and study this because I'm pretty new on those technologies.