|
|
QueryDataTableEntries on Data Table with infotable values returns
• result data with exact match for PostgreSQ
• result data that contains the search keyword for MSSQL.
|
|
|
QueryDataTableEntries on Data Table with infotable values returns
• result data with exact match for PostgreSQ
• result data that contains the search keyword for MSSQL.
|
var query =
{
"filters": {
"type": "Matches|NotMatches",
"fieldName": "Source",
"expression": "(Kettle)|(Filler)"
}
};
var query = {
"filters": {
"fieldName": "tags",
"type": "NOTTAGGED",
"tags": [
{
"vocabulary": "Applications",
"vocabularyTerm": "Testing"
},
{
"vocabulary": "Plants",
"vocabularyTerm": "Sedona"
}
]
}
};
|
|
When using LIKE/NOTLIKE you need to add your own Wild Cards (% or * or ? for a single character wild card). For example to find ThingWorx use LIKE Th%
|
var query = {
"filters":{
"type": "GT, LT, GE, LE, NE, EQ, LIKE, NOTLIKE",
"fieldName": "<field_name>",
"value": "Th\\+*"
}
};
|
|
While using QueryImplementingThingsOptimized service with a query parameter, if the query is a simple filter or nested filter and uses multiple IN filters, the code fails when the array values for the IN filter are empty.
|
var jsonArray = [12,14];
var query = {
"filters": {
"type": "IN, NOTIN",
"fieldName": "Duration",
"values": jsonArray
}
};
var query =
{
"filters": {
"type": "Between, NotBetween",
"fieldName": "Duration",
"from": "2",
"to": "12"
}
};
var query =
{
"filters": {
"type": "MissingValue, NotMissingValue",
"fieldName": "OrderQuantity"
}
};
var query =
{
"filters": {
"type": "Near, NotNear",
"fieldName": "fieldName",
"distance": "50",
"units": "M(iles), K(ilometers), N(autical miles)",
"location": {
"latitude": "40.12",
"longitude": "51.24",
"elevation": "300",
"units": "WGS84"
}
}
};
var query =
{
"filters": {
"type": "And",
"filters": [
{
"type": "GT",
"fieldName": "Duration",
"value": "12"
},
{
"type": "TAGGED",
"fieldName": "tags",
"tags": [
{
"vocabulary": "MaintenanceIssues",
"vocabularyTerm": "PowerOutage"
}
]
}
]
}
};
var query =
{
"filters": {
"type": "AND",
"filters": [
{
"type": "OR",
"filters": [
{
"fieldName": "status",
"type": "LIKE",
"value":"*-none-*"
},
{
"fieldName": "status",
"type": "LIKE",
"value": "empty"
}
]
},
{
"fieldName": "isDeleted",
"type": "EQ",
"value": false
}
]
}
}
var query =
{
"sorts": [
{
"fieldName": "Material"
}
]
}
var query =
{
"sorts": [
{
"fieldName": "Material"
},
{
"fieldName": "OrderDate",
"isAscending": false
}
]
}
var query =
{
"sorts": [
{
"fieldName": "LotID",
"isAscending": false,
"isCaseSensitive": false
},
{
"fieldName": "Plant"
}
],
"filters": {
"type": "And",
"filters": [
{
"type": "GT",
"fieldName": "Duration",
"value": "12"
},
{
"type": "TAGGED",
"fieldName": "tags",
"tags": [
{
"vocabulary": "MaintenanceIssues",
"vocabularyTerm": "PowerOutage"
}
]
}
]
}
};