255 views

Description

When attempting to access catalog items via the reference icon (i) on the Catalog Client Script form, an error message appears

Steps to Reproduce

 

  1. Navigate to Service Catalog > Catalog Policies > Catalog Client Scripts.
  2. Filter the records to display type "onChange" and click Run.
  3. Open a record attached to a catalog item (for example: Show Delegate Roles).
  4. On the Catalog item field, click on the (i) reference icon.

Result: The following error message is displayed on the GUI:

onSubmit script error: TypeError: GlideEditor.get(...) is undefined:
function onSubmit() {
var functionName = g_form.getValue("type");
if (functionName == "")
return true;

return validateFunctionDeclaration("script", functionName);
}

Workaround

If you are able to upgrade, review the Fixed In field below to determine the versions that have a permanent fix. Otherwise, try one of these workarounds:

  1. Modify the sys_popup view of those referenced records (in the case of the steps to reproduce this would be a record producer) and remove the Script editor.
    1. Right-click on the form header of that Catalog Item/Record producer and select Configure > Form Layout.
    2. In the View name drop-down, select Sys_popup.
    3. Move the Script field from the Selected list to the Available list and click Save.

  2. Set the glide.ui.clickthrough.popup property to true. This will bring back the referenced record in a popup window.

Related Problem: PRB673036

Seen In

Geneva Patch 4
Geneva Patch 5
Geneva Patch 6
Helsinki Patch 2

Fixed In

Istanbul

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-10-30 09:26:46
Published:2017-10-30