Notifications

15 views

Description

While using UI15, clicking on 'Show Related Records' list view picker throws GlideList2 errors:

VM3538:1 Uncaught ReferenceError: GlideList2 is not defined
at eval (eval at evalScript (VM3190 js_includes_doctype.jsx:84), <anonymous>:1:12)
at eval (<anonymous>)
at evalScript (VM3190 js_includes_doctype.jsx:84)
at GlideModal._evalScripts (VM3229 js_includes_last_doctype.jsx:7093)
at GlideModal._renderFromAjax (VM3229 js_includes_last_doctype.jsx:6905)
at e._responseReceived (VM3190 js_includes_doctype.jsx:12054)
at e._processReqChange (VM3190 js_includes_doctype.jsx:11912)
..
VM3523:2 Uncaught ReferenceError: GlideWidgetFilter is not defined
at eval (eval at evalScript (VM3190 js_includes_doctype.jsx:84), <anonymous>:2:5)
(anonymous) @ VM3523:2
setTimeout (async)
addLoadEvent @ js_includes_doctype.jsx?v=08-15-2018_0923&lp=Tue_Oct_30_02_26_01_PDT_2018&c=18_270:444
(anonymous) @ VM3523:1
..
VM3537:1 Uncaught ReferenceError: GlideWidgetHideOnEmpty is not defined
at eval (eval at evalScript (VM3190 js_includes_doctype.jsx:84), <anonymous>:1:26)

Steps to Reproduce

  1. Log on to any out of the box Instance
  2. Change to UI 15
  3. Go to Incident > Create New
  4. As Caller, put "Beth Anglin" or another user who is the caller on an incident
  5. Click the Show Related Incidents UI Macro decoration

Result:

The incidents list opened by the caller is displayed in a modal window without pagination count

Also, in the browser console, we see this error:

VM3538:1 Uncaught ReferenceError: GlideList2 is not defined

Workaround

After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make this decision lightly, and we apologize for any inconvenience. You can submit an Enhancement Request from the Self-Service portal on HI, and Subscribe to this article for future updates.

Following are the possible workarounds:

Workaround #1:

Using UI 16 will resolve the issue. You can switch to UI 16 as per the document Switch between UI16 and UI15.

Workaround #2:

If you have pressing reasons to use UI 15, please consider this other workaround,

  • Have the modal contents open in a new tab/window rather than the modal.
  • The change would be made to the user_show_incidents UI macro where you need to replace the GlideDialogWindow calls with a call to open the new tab/window with the query.

For example, 

  1. Navigate to "user_show_incidents" UI macro
  2. Then update the XML section as below for showRelatedList function, 
function showRelatedList(reference) {
try {
var displayValue = g_form.getDisplayBox(reference).value;
var title = 'Showing records related to: ' + displayValue;
var s = reference.split('.');
var referenceField = s[s.length - 1];
var query = referenceField + '=' + g_form.getValue(reference);

var url = "https://<InstanceName>.service-now.com/incident_list.do?sysparm_query="+ query;

window.open(url, "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400");

<!-- var gdw = new GlideModal('show_list');
gdw.setTitle(title);
gdw.setSize(750);
gdw.setPreference('table', 'incident_list');
gdw.setPreference('sysparm_query', query);
gdw.setPreference('title', 'A New Title');
gdw.render(); -->
} catch (e) {
jslog('error showing related list');
jslog(e);
}
}

Related Problem: PRB1074428

Seen In

There is no data to report.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-12-06 02:52:26
Published:2018-12-06