269 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

Intended Fix Version

Madrid

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-08-29 23:46:52
Published:2017-07-21