cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

how to use query input for QueryPropertyHistory of a kepware tag?

svisveswaraiya
17-Peridot

how to use query input for QueryPropertyHistory of a kepware tag?

Hi,

Is it possible to use the input parameter Query in a service and pass this query input to filter the values in QueryPropertyHistory of a kepware tag?

For eg: I wanted to get only values that are greater than 10 in the QueryPropertyHistory of a tag. How can I filter this? If it is possible to use the query input parameter how should I define it?

 

Please provide some idea.

Thanks,

Shalini V.

2 REPLIES 2

My favorite reference when creating Queries: http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FComposer%2FThings%2FThingServices%2FQueryParameterforQueryServices.html

 

All services that support the Query Input Parameter need it defined as a JSON.

This link should help with that.

Also the DataFilter Widget creates a JSON that can be directly used as a Query input parameter.

slangley
23-Emerald II
(To:PaiChung)

Hi @svisveswaraiya 

 

If the response posted by @PaiChung answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags