Skip to main content
1-Visitor
July 22, 2016
Solved

Multiple player data using single Thing/Template

  • July 22, 2016
  • 2 replies
  • 4512 views

Currently i am working on a project, where i need to display information of multiple player on a dashboard.

I tried with repeater widget, but problem with that widget is that i need to create multiple things. For each user we need to create seperate things.

what i am looking for is that :

1) Is it possible to have multiple player data on a single dashboard using a single thing/template?

2) From a single EMS(Edge Micro Server) we need to send the data to ThingWorx. (JSON format looks good to me)

3) Do we need to write any service for it? If yes what is it?

All that i require is Multiple Player Data on a Dashboard using a single Thing and single EMS.

On clicking the player name or id, the mashup should redirect to the specified player name/id dashboard(it should display the name, age, height or weight of only that particular player).

I am struggling with this problem from a very long time. Kindly, give some input so that i can proceed.

Best answer by mhollenbach

Mayur,

Typically you should be using one Thing to represent each player and it's properties.

If you want to push a bunch of data to one Thing on the platform from an Edge device I recommend sending it all in one InfoTable property. You would then bind the Edge InfoTable property to an InfoTable property in ThingWorx. This is assuming that you are binding a Remote device and not just sending REST requests.

You can then call "GetPropertyValues", in a Mashup, for the Thing with the InfoTable property that is storing all of your player data. From that point you would drag and drop the InfoTable property from "All Data" onto a List Widget that can display all of the player names. Upon someone selecting a player name you would bind any other data you want to show for that player from"Selected Rows" on the "GetPropertyValues" service.

Hope that makes sense. You shouldn't need to write any services if you follow this.

Meghan

2 replies

5-Regular Member
July 22, 2016

Mayur,

Typically you should be using one Thing to represent each player and it's properties.

If you want to push a bunch of data to one Thing on the platform from an Edge device I recommend sending it all in one InfoTable property. You would then bind the Edge InfoTable property to an InfoTable property in ThingWorx. This is assuming that you are binding a Remote device and not just sending REST requests.

You can then call "GetPropertyValues", in a Mashup, for the Thing with the InfoTable property that is storing all of your player data. From that point you would drag and drop the InfoTable property from "All Data" onto a List Widget that can display all of the player names. Upon someone selecting a player name you would bind any other data you want to show for that player from"Selected Rows" on the "GetPropertyValues" service.

Hope that makes sense. You shouldn't need to write any services if you follow this.

Meghan

msakshi1-VisitorAuthor
1-Visitor
July 25, 2016

Thank you so much Meghan.

I will look into the solution and try to implement that and if i am stuck again, then again i will ping.

12-Amethyst
July 22, 2016

You can refer to these 2 response:

Re: Multiple User Data

Re: How to map data coming from EMS to multiple users?

Disclaimer: This response contains my views and opinions expressed and not R&D's or company's.

1) Is it possible to have multiple player data on a single dashboard using a single thing/template?

    Yes, it is possible. The simplest option is to display it in a grid. However it might be possible to display it other ways too.

2) From a single EMS(Edge Micro Server) we need to send the data to ThingWorx. (JSON format looks good to me)

    JSON or InfoTable may be used. You will need service code on platform end to consume this data and set appropriate properties.

3) Do we need to write any service for it? If yes what is it?

     You will need a service to breakdown the data into properties that may be displayed into the dashboard, please see the above referenced answers.

msakshi1-VisitorAuthor
1-Visitor
July 25, 2016

Thank you Sajid, this seems little complicated to me but still i will give it a try

12-Amethyst
July 25, 2016

Re: Multiple User Data has code snippet using Infotable without datashape.