Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
When data is Queried through the "QueryNamedPropertyHistory", I am getting data as shown in the following table.
But if do with following code:
var result1 = ThingTemplates["Temp_DemoThingTemplate"].QueryImplementingThingsWithNamedPropertyHistory({
propertyNames : {
"rows": [{
"name": "WaterPump",
"description": "propertyDescription"
}],
"dataShape": {
"fieldDefinitions": {
"name": {
"name": "name",
"aspects": {},
"description": "",
"baseType": "STRING",
"ordinal": 1
}
}
}
},
nameMask: undefined /* STRING */,
maxDataItems: 50000 /* NUMBER */,
dataQuery: undefined /* QUERY */,
startDate: StartDate /* DATETIME */,
endDate: EndDate /* DATETIME */,
oldestFirst: undefined /* BOOLEAN */,
tags: undefined /* TAGS */
});
result = result1;
//QueryImplementingThingsWithNamedPropertyHistory
I am getting no data in info table
What is the Thingworx version you are using?