DialogWindow is not working in portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 06:06 AM
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:
Emp portal screen:
Thanks in advance,
Sujith
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 04:45 PM
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.
