cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Binding data

Rayon_11
10-Marble

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. 

 

 

ACCEPTED SOLUTION

Accepted Solutions
nmutter
14-Alexandrite
(To:Rayon_11)

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.

View solution in original post

2 REPLIES 2
nmutter
14-Alexandrite
(To:Rayon_11)

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.

Hello @Rayon_11 

 

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

 

Regards

Bhawna

Announcements


Top Tags