Skip to main content
12-Amethyst
January 21, 2021
Question

Not getting the Data

  • January 21, 2021
  • 1 reply
  • 792 views

When data is Queried through the "QueryNamedPropertyHistory", I am getting data as shown in the following table.

 

SP_9715784_1-1611224528628.png

 

 

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

 
 
 
 
 

1 reply

16-Pearl
January 21, 2021

What is the Thingworx version you are using?