I want to filter a variable with other variable but current does not work

Community Alums
Not applicable

I want to filter a variable with other variable in a catalog item but I try to filter with current.variables in the reference qual but "current" does not work.

 

The system log show me that message:

com.glide.script.RhinoEcmaError: "current" is not defined.
<refname> : Line(1) column(0)

1 ACCEPTED SOLUTION

you need to write javascript&colon; at starting only and then call a script include which returns query as string or write string in same field.

 

Example:

 

javascript&colon; "nameIN" + getTableExtensions() + "^element=category";

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @Community Alums 

 

Where are you writing the script? also can you post your script here?

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Community Alums
Not applicable

I created a variables in a variables set and I want filter the Subcategorization variable  with the categorization variable

 

Categorization:

JEDMM_0-1690988096625.png

 

Subcategorization:

JEDMM_1-1690988387553.png

 

and I used the reference qual but current.variables does not work  


gs.info is just to see what happened with the variable

you need to write javascript&colon; at starting only and then call a script include which returns query as string or write string in same field.

 

Example:

 

javascript&colon; "nameIN" + getTableExtensions() + "^element=category";

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali