216 views

Description

When high security plugin is inactive, clicking New UI Action for the columns embedded list on the sys_db_object throws RP is not defined error.

Steps to Reproduce

 

  1. Be on a pre-high security instance
  2. Navigate to sys_db_object, and select the Incident record
  3. In the Columns embedded list, click the New button
  4. The form reloads and the following error is thrown:

RP is not defined.

org.mozilla.javascript.EcmaError: "RP" is not defined.

Caused by error in <refname> at line 2



1: var table = new GlideRecord("sys_db_object"); ==>

2: table.get(RP.getParameterValue("sysparm_collectionID"));

3: action.setRedirectURL("sys_dictionary.do?sysparm_query_override=name=" + table.name.toString());

4: action.setReturnURL(table);

Workaround

Modify the UI action to remove the use of RP if the high security plugin is not active:

  1. On this UI Action: https://<instance>.service-now.com/nav_to.do?uri=sys_ui_action.do?sys_id=2f1a8302bf3121000ba9dc2ecf073956
  2. Comment out or remove the second line: table.get(RP.getParameterValue("sysparm_collectionID"));
  3. Add a new line/replace the removed line with: table.get(action.getGlideURI().get('sysparm_collectionID')); 

Related Problem: PRB703946

Seen In

Eureka Patch 10
Fuji Patch 12 Hot Fix 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-06-18 16:36:32
Published:2017-07-21