Need help with the reference qualifier

JLeong
Mega Sage

Hi Guys,

 

Need some help with the reference qualifier...

I am trying to display the user's asset based on another reference field (sys_user) and the request type.

In the variable, I have the following:

JLeong_0-1690839966961.png

 

This is the script include. I dont even have anything in there just a log. But that log is not even showing in the system log. 

 

JLeong_1-1690840266702.png

 

This is what I have in the system log:

JLeong_2-1690840423783.png

 

As you can see, I am in a scope application. Not sure if that will make a difference.

 

Thank you in advance.

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Aylee Andersen
Kilo Sage

You need to call your script include with your application scope prefix:

new x_rrdu2_mobility_e.eBondingUtils().getDevice(current);

 

The "x_rrdu2_mobility_e.eBondingUtils" comes from the "API Name" field on your script include. Right now your script is trying to run in the global scope since you don't have your scope specified, that's why it's saying that it's not defined.

View solution in original post

2 REPLIES 2

Aylee Andersen
Kilo Sage

You need to call your script include with your application scope prefix:

new x_rrdu2_mobility_e.eBondingUtils().getDevice(current);

 

The "x_rrdu2_mobility_e.eBondingUtils" comes from the "API Name" field on your script include. Right now your script is trying to run in the global scope since you don't have your scope specified, that's why it's saying that it's not defined.

I did that before and it did not work. But this time, I also changed:

JLeong_0-1690855966371.png

And it worked.

 

Thank you so much for responding to my question.