Skip to main content
1-Visitor
March 8, 2019
Question

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

  • March 8, 2019
  • 1 reply
  • 1382 views

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.

1 reply

22-Sapphire I
March 8, 2019

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.

Community Manager
March 14, 2019

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