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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Can I use Repeater widget in ThingWorx Studio to create gauges dynamically?

atenti
1-Newbie

Can I use Repeater widget in ThingWorx Studio to create gauges dynamically?

Hi, I want to use the repeater widget in ThingWorx Studio to generate gauges dynamically.

In the "Data" field I bind an InfoTable and I want to create as many gauges as infotable rows.

Is it possible?

Thanks,

Alessio

4 REPLIES 4

Hi Alessio,

it should be possible, the repeater will repeat its inner element, e.g. a gauge and fill it with the data it gets from the ThingWorx service (InfoTable).

Are you running into any specific issues?

Cheers,

Michael

Thanks for your reply.

I tried to do that with my infotable, but i have a problem.

First of all, i would like to use this infotable in this example to explain my problem :

CountryCapital
ItalyRome
FranceParis


So, I want to create 2 gauges with the "Capital" value. How can I do that?


I tried to bound "All items" in the field "Data" of the repeater and then I bound the "Capital" field (from the "Current Selected Item" menu) into the field "Value" of the gauge I put as inner element of the repeater.

I see 2 gauges, but with the same values, and if I click on the value, it changes with the next value (for example: I see "Rome" in both. if I click on "Rome", I see "Paris" in both).


How can I do that?


Thanks in advance,

Alessio

rhawa
8-Gravel
(To:atenti)

Alessio.

 

Not sure, if this is still open for you, but for the other user's sake, I will give a response:

Please refer to the Helpcenter and to this article and follow exact the steps explained there:

  • First bind the 'All Items' from your service to the Repeater Widget
  • THEN place other widgets ON the Repeater! E.g. a Panel and some Value Displays.
  • This will enable the  'Repeater Data Item' properties on the 'External Data' panel. Select the desired properties from there and bind them to the Widgets in the Repeater - not from "Current Selected Item' list! Otherwise you will end up in a situation like you have described.

 

Because I saw this isue in the list -  so I thought  it is a new one. So I checked it and want now  to share my observations.:

- So lets have a InfoTable e.g. comming from DataTable.GetDataTableEntries() service:

2018-06-19_19-58-42.jpg

 

-so created an repeter with one gauge element on it . 

-add a service which return an InfoTable here e.g. DataTable.GetDataTableEntries()

 

2018-06-19_20-20-14.jpg

 

-select on the left side the Repeater data Items - for this you have first to select the repeater first

- bind the repeater data items to the  a particular property of the gauge element - e.g. to value and min:

 

2018-06-19_20-08-32.jpg

 

- so check the apperance in the preview:

 

2018-06-19_20-32-11.jpg

-so the effect  that we will  set for each gauge/ repeater row a  value set of  particular row form the InfoTable/DataTable

 

The orignal problem could be reproduced if we use the Current selected item for the gauge values:

 

2018-06-19_20-36-33.jpg

 

In this case we will have the wrong behavior as previosly was reported in this post

 

2018-06-19_20-40-15.jpg2018-06-19_20-41-49.jpg

 

Top Tags