Hello,
I am using local variable as a filter for a query:
a!queryFilter( field: "codigoMunicipio", operator: "IN", value: local!municipioMultiple )
Problem is tha the variable is passed as String and the filter have condition IN
Which generates the following error:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error in rule 'tax_colopoc' at function a!gridField [line 310]: Cannot apply operator [IN] to field [importMonth] when comparing to value [TypedValue[it=3,v=January]].
Any idea how to pass it as an array {"January"} ?
Discussion posts and replies are publicly visible
Looking like it is a type casting issue, try like this for once
a!queryFilter(field: "codigoMunicipio",operator: "IN",value: {
touniformstring(
local!municipioMultiple
)})
Ok at the end of the day this sollution worked !
Great