<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What is the best way for autorefresh data in Repeater in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/What-is-the-best-way-for-autorefresh-data-in-Repeater/m-p/530515#M23771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I need to create a list of connected things implemented one ThingTemplate with two text properties and one button, which switches my remote thing on/off.&lt;/P&gt;&lt;P&gt;I discovered that could not place a button inside the table and the this task I could only use a Repeater widget.&lt;/P&gt;&lt;P&gt;I called QueryImplementedThingsWithData service from my ThingTemplate and mapped the result to the Repeater.&lt;/P&gt;&lt;P&gt;Also I've created a mashup for the thing with two text fields for displaying properties and one button&amp;nbsp; to set value for the third property.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Inside Repeater I pointed this small Mashup as a mashup for each element in the repeater and passed the Thing name as a parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Everything work fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want to add an AutoRefresh widget to autorefresh the states of things and disable buttons for disconnected thing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And I've binded Refresh event to the same &lt;SPAN style="font-size: 13.3333px;"&gt;QueryImplementedThingsWithData.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When I do that and AutoRefresh triggers I loose all property values from all rows of the repeater widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What's wrong? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I understand that I can place AutoRefresh on the small mashup for each thing, but when I have the list of 200-300 things, I will have 200-300 timers on the page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It there any solution to pass the events deeper to the components tree? I don't want the timer for each line of the repeater.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 15:21:32 GMT</pubDate>
    <dc:creator>sponomarenko-3</dc:creator>
    <dc:date>2016-03-04T15:21:32Z</dc:date>
    <item>
      <title>What is the best way for autorefresh data in Repeater</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/What-is-the-best-way-for-autorefresh-data-in-Repeater/m-p/530515#M23771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I need to create a list of connected things implemented one ThingTemplate with two text properties and one button, which switches my remote thing on/off.&lt;/P&gt;&lt;P&gt;I discovered that could not place a button inside the table and the this task I could only use a Repeater widget.&lt;/P&gt;&lt;P&gt;I called QueryImplementedThingsWithData service from my ThingTemplate and mapped the result to the Repeater.&lt;/P&gt;&lt;P&gt;Also I've created a mashup for the thing with two text fields for displaying properties and one button&amp;nbsp; to set value for the third property.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Inside Repeater I pointed this small Mashup as a mashup for each element in the repeater and passed the Thing name as a parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Everything work fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I want to add an AutoRefresh widget to autorefresh the states of things and disable buttons for disconnected thing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And I've binded Refresh event to the same &lt;SPAN style="font-size: 13.3333px;"&gt;QueryImplementedThingsWithData.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;When I do that and AutoRefresh triggers I loose all property values from all rows of the repeater widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What's wrong? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I understand that I can place AutoRefresh on the small mashup for each thing, but when I have the list of 200-300 things, I will have 200-300 timers on the page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It there any solution to pass the events deeper to the components tree? I don't want the timer for each line of the repeater.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advance!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:21:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/What-is-the-best-way-for-autorefresh-data-in-Repeater/m-p/530515#M23771</guid>
      <dc:creator>sponomarenko-3</dc:creator>
      <dc:date>2016-03-04T15:21:32Z</dc:date>
    </item>
  </channel>
</rss>

