Skip to main content
1-Visitor
Mar 8, 2019 11:39 AM UTC
Question

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

22-Sapphire I
Mar 8, 2019 4:26 PM UTC

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.

Translate
Support
Mar 14, 2019 2:56 PM UTC

Hi @svisveswaraiya_285988 

 

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

Translate