Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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.
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.
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