Skip to main content
11-Garnet
April 25, 2023
Solved

Binding data

  • April 25, 2023
  • 2 replies
  • 1117 views

 

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. 

 

 

Best answer by nmutter

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

nmutter16-PearlAnswer
16-Pearl
April 25, 2023

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.

5-Regular Member
April 30, 2023

Hello @Rayon_11 

 

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

 

Regards

Bhawna