Skip to main content
11-Garnet
Apr 25, 2023 5:17 PM UTC
Solved

Binding data

 

I have created a thing and applied properties and services to the thing and now I want to bind this thing data to a grid widget then How I can bind data to grid widget in mashup in thing Worx? 

please explain in detail and also show screen shots if possible. 

Thanks in advance. 

 

 

nmutterAnswer
17-Peridot
Apr 25, 2023 8:41 PM UTC

The tutorial may help you: Step 6 - Grid widget:

https://community.ptc.com/t5/IoT-Tips/Basic-Mashup-Widgets-Guide-Part-3/ta-p/808963#:~:text=gauge%20border%20(pixels)-,Step%206%3A%20Grid%20Advanced,-A%20Grid%20Advanced

 

Basically

  1. Add a Grid to mashup
  2. Add Thing with service QueryPropertyValues
    1. In the tutorial they do call QueryImplementingThingsWithData on a ThingTemplate instead. You want to call a service on your thing which has the properties you want to display
  3. Bind result "All data" of QueryPropertyValues to the Grids data

Or this tutorial, where the do bind a single property of a thing to a Gauge widget using the GetPropertyValues service mentioned above: https://community.ptc.com/t5/IoT-Tips/Get-Started-with-ThingWorx-for-IoT-Guide-Part-4/ta-p/811701

 

Let me know if it helps. I would assume there are better tutorials but I did not find the ones which were available at https://developer.thingworx.com/en/resources/guides previously.

2 replies

nmutter17-PeridotAnswer
17-Peridot
Apr 25, 2023 8:41 PM UTC

The tutorial may help you: Step 6 - Grid widget:

https://community.ptc.com/t5/IoT-Tips/Basic-Mashup-Widgets-Guide-Part-3/ta-p/808963#:~:text=gauge%20border%20(pixels)-,Step%206%3A%20Grid%20Advanced,-A%20Grid%20Advanced

 

Basically

  1. Add a Grid to mashup
  2. Add Thing with service QueryPropertyValues
    1. In the tutorial they do call QueryImplementingThingsWithData on a ThingTemplate instead. You want to call a service on your thing which has the properties you want to display
  3. Bind result "All data" of QueryPropertyValues to the Grids data

Or this tutorial, where the do bind a single property of a thing to a Gauge widget using the GetPropertyValues service mentioned above: https://community.ptc.com/t5/IoT-Tips/Get-Started-with-ThingWorx-for-IoT-Guide-Part-4/ta-p/811701

 

Let me know if it helps. I would assume there are better tutorials but I did not find the ones which were available at https://developer.thingworx.com/en/resources/guides previously.

Translate
5-Regular Member
Apr 30, 2023 4:55 PM UTC

Hello @Rayon_11 

 

Pls confirm if you have received your solution and mark the solution for the benefirt of other community users. 

 

Regards

Bhawna

Translate