DialogWindow is not working in portal

sujith2257
Tera Contributor

UI Page name Redirect_SQL_Teams_Channel:

HTML XML script:

<?xml version="1.0" encoding="utf-8" ?>
<h4><a href="https://teams.microsoft.com/" target="_blank">SQL Team Channel</a></h4>
<h4><a href="https://outlook.office365.com/mail/" target="_blank">SQL Channel email</a></h4>
 
 
----------------------------------------------------------------------------------------------------------
Catalog Client Script on Catalog Item:

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == "sql") {

var dialog = new GlideDialogWindow("Redirect_SQL_Teams_Channel");

dialog.setTitle("For SQL Server discussion topics, please connect with the team via Teams Channel ");
dialog.setPreference('id', 'teams');
dialog.render();

}

}

==========================================================================
 
When A multiselct Variable is choosen as sql, The catalog page has to get redirected to teams/ chat.
It is working fine and expected in dev Instance.
When loaded same in employee portal, pop-up is not working.
 
Its giving me Error as 
"There is a JavaScript error in your browser console"
 
Please let me the reason and resolution for the same.
Dev Instance screen shot:
sujith2257_0-1699537932331.png

 

Emp portal screen:

sujith2257_1-1699538062426.png

 

Thanks in advance,
Sujith
 
1 REPLY 1

harshav
Tera Guru

GlideDailogWindow() is not supported in portal. You can use spModal instead your widget to make it work like a popup and open a widget in it or give a message.