Can you use arguments in a scripted filter?

Justin1
Kilo Expert

Hi I'm using a script include in my filters so the format is:

"Sys_ID is" -> javascript:myFunction();

 

However, when I try

"Sys_ID is" -> javascript:myFunction(query) where query is an encoded query from a related list, it doesn't work. Does anyone know if this is possible?

1 ACCEPTED SOLUTION

Adrian Ubeda
Mega Sage
Mega Sage

Hi, 

It's possible but you should return the query in the function that you are calling, also you should call it as follows:

javascript: new ScriptIncludeName().functionName(current.arg1, current.arg2);

You can use it in the ref_qualifier, or you can create your custom dynamic filter and use it as you want.

If it was helpful, please give positive feedback.

Thanks, 

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

View solution in original post

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

you can use below in scripted filter

 

find_real_file.png

 

Regards,

Sachin

Adrian Ubeda
Mega Sage
Mega Sage

Hi, 

It's possible but you should return the query in the function that you are calling, also you should call it as follows:

javascript: new ScriptIncludeName().functionName(current.arg1, current.arg2);

You can use it in the ref_qualifier, or you can create your custom dynamic filter and use it as you want.

If it was helpful, please give positive feedback.

Thanks, 

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆