Question
QueryDataTableEntries filter not working when using a variable value
query = {
"filters": {
"type": "EQ",
"fieldName": "site",
"value": uid
}
};
logger.warn(uid);
var operatorDataTableEntries = Things["EAS.Mun.DataTable.Operators"].QueryDataTableEntries({
maxItems: undefined /* NUMBER */ ,
query: query /* QUERY */ ,
values: undefined /* INFOTABLE */ ,
source: undefined /* STRING */ ,
tags: undefined /* TAGS */
});
If I run this query and use 2 instead of uid, it will return the expected results. When I change this to uid, it returns no results but throws no errors. I have verified that uid = 2. I have also tried casting uid to Number() and parseInt().
Why is this not working when using a variable? Is this a known bug in my TWX version? This is Thingworx version 9.0.4

