Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Calling a Record Producer Variable in Advanced Reference Qualifier'sScript Include Function

brogaming70
Giga Contributor

I have a variable (field_1) in a Record Producer, which is a reference field. In this Record Producer, I have a variable Set and in that I have a variable field_2, which is a drop-down. I want to put Advanced Reference Qualifier, and when calling the script include I want to pass the sys_id of the value in field_1 as a parameter of the function of my script include. I tried these approaches so far:
1. javascript: new ScriptIncludeName().function_name('current.variables.field_1');

2. javascript: new ScriptIncludeName().function_name('producer.field_1');

My Script Include is working fine, the only blocker is I am not able to pass field value in the function parameter, which is further used in the script.

Any help would be really appreciated.

1 REPLY 1

Bhavya11
Kilo Patron

Hi @brogaming70 ,

 

by looking into your Advanced Reference Qualifier ;

'current.variables.field_1' : You passed the string "current.variables.field_1" instead of the value so try passing value with quotes

javascript: new ScriptIncludeName().function_name(current.variables.field_1);

 

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK