JavaScript Queries
Hello, i'm trying to query an InfoTable column using multi-input, to illustrate:
My InfoTable data shape is like this : Code(number) , Product(string) & Line (string), the line field contains a lot of numbers seperated by -
I want my JS query to return ligns ending with 922 or 921. the query i wrote is this :
var query = {
"filters": {
"fieldName": "Line",
"type": "LIKE",
"value": criteria
}
};
var params = {
t: me.myProdInfoTable /* INFOTABLE */,
query: query /* QUERY */
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Query(params);
With criteria as my string input. the query works when i put %22 but does not work when i put "%22", "%21". Can anyone help me, thank you

