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
)})
Hello Ankit,
Thank you for your answer. I have tried it and receiving the same error.
Hi, Can you send me the complete query entity code with related xsd code?
I have updated the whole code in the previous reply.
attaching here the CDT
Ok at the end of the day this sollution worked !
Great