calling a script include from a default value of the string in record producer

kuttti
Kilo Guru

Hello Community,

 

I have a variable "ABC"(backend value abc) which is a reference field to the user table on a record producer and default value I used is javascript:gs.getUserID(). I have other variable  XYZ (String) so here in the default value I am using the following line of script - javascript: new sn_hr_core.hrGlideAjaxUtil().getABCXYZ(current.abc);

so when I am passing current.abc says undefined when passed as parameter.

 

Any help is greatly appreciated.

 

Thanks!

1 ACCEPTED SOLUTION

Hello @Community Alums I figured out the solution I used gs.getUserID() in the place of current.abc.

 

Thanks for your time!

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Try current.variables.abc

kuttti
Kilo Guru

Hello @Community Alums  It is on record producer but still I tried current.variables.abc still doesn't work

Community Alums
Not applicable

Okay. Could you share the script Include code. 

Also check the scope of the script include is accessible from all the scopes if they are different scopes

Hello @Community Alums I figured out the solution I used gs.getUserID() in the place of current.abc.

 

Thanks for your time!