Skip to main content
1-Visitor
May 10, 2017
Question

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

  • May 10, 2017
  • 1 reply
  • 3402 views

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

1 reply

16-Pearl
May 10, 2017

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

atenti1-VisitorAuthor
1-Visitor
May 11, 2017

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

12-Amethyst
June 19, 2018

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.