How to avoid the this error - com.glide.script.RhinoEcmaError: "RP" is not defined.

ramesh_r
Mega Sage

Hi All,

I have one Display BR in the Task table. with below condtion.

Script in BR

if(!RP.isPopup()){

}

Because of the above script we are getting the below warning multiple time can any one help me how to handle this error.

com.glide.script.RhinoEcmaError: "RP" is not defined.
   sys_script.ce6b5e7719af70007a15bf3dd39e2b60.script : Line(1) column(0)
==>   1: if(!RP.isPopup()){
      2: //Initialize the scratchpad variable
      3: g_scratchpad.emptyVars = '';

 

 

Thanks

3 REPLIES 3

Harish KM
Kilo Patron
Kilo Patron

Hi try this

in your condition you can add this:

if(typeof RP != 'undefined' && !RP.isPopup())

Regards
Harish

When i adding this if condition in the BR , then i am getting error in change record when opeinng the form

 

find_real_file.png

Prakhar7
ServiceNow Employee
ServiceNow Employee

I think you are trying out render properties api.
This might be of help: