# Data viewer list works only the first time

**URL:** <https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929>\
**Category:** Questions about Thunkable X\
**Created:** [June 14, 2021, 9:14pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929 "2021-06-14T21:14:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 14, 2021, 9:14pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/1 "2021-06-14T21:14:31Z")

</div>

Hi, I am working with a data viewer list and it is connected to a google sheets. I would like to add 1 to a value every time I click on a viewer item. But I noticed that it only adds 1 the first time I click the item, is there a way to do this? Like counting every time an item is clicked

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 14, 2021, 9:52pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/2 "2021-06-14T21:52:21Z")

</div>

Yes, you can definitely do this. Share a screenshot of your blocks and someone can help fix what you’ve tried.

---

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 14, 2021, 10:53pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/3 "2021-06-14T22:53:32Z")

</div>

Okkk, thanks!! I actually simplified the problem a bit. I have a table in google sheets and this table is constantly changing. So when I click on the first item in the data viewer list it should extract some data from that table. However, it only works the first time. When the source table changes and the data viewer is refreshed, a new data appears in the first row, but clicking on that item (which now appears first) continues to extract the information from the item that was previously at the top of the list. In other words, when an item has already been clicked, it no longer extracts information but always detects it, even when the table is changing.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/7/c76ec119adb99108105d0cb07815edcc48181132.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 14, 2021, 11:18pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/4 "2021-06-14T23:18:16Z")

</div>

That sounds like a slightly different issue. I don’t have a lot of experience with syncing Google Sheets to Thunkable – beyond using static data – but I believe people have mentioned that you have to re-sync them to update the data in Thunkable.

---

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 14, 2021, 11:58pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/5 "2021-06-14T23:58:32Z")

</div>

Oh ok, but how could I do that (res-sync)? Is there a block for that?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 15, 2021, 1:15am UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/6 "2021-06-15T01:15:02Z")

</div>

Yes, in the Data Viewer List component, there is a Refresh Data block.

---

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 15, 2021, 1:27am UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/7 "2021-06-15T01:27:54Z")

</div>

Ok, but I am already using it ☹ (in other block)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 15, 2021, 1:47am UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/8 "2021-06-15T01:47:24Z")

</div>

I just tested it with a Google Sheet and my data synced with the new Google Sheet values when I used the Refresh Data block or navigated to a different scene and then back again.

Here’s the project. It may convert my Google Sheet to a local data source but you can at least see the blocks I’m using.

[https://x.thunkable.com/copy/e548e99d537840823cdc28fae3dad167](https://x.thunkable.com/copy/e548e99d537840823cdc28fae3dad167)

---

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 16, 2021, 4:26pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/9 "2021-06-16T16:26:23Z")

</div>

Thanks! But I think I am not describing my problem correctly. the thing: The data viewer list is refreshed and it shows the new data, but when I click on that item it gets the old information, visually it is updated, but when I click it get wrong data

---

<div class="post-metadata">

**Author:** ![davidps79](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/davidps79/32/106318_2.png) [@davidps79](https://community.thunkable.com/u/davidps79)\
**Post date:** [June 16, 2021, 4:27pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/10 "2021-06-16T16:27:04Z")

</div>

Btw I am using old version of thunkable, should I use the new one? (I see you are using other version in that project)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/data-viewer-list-works-only-the-first-time/1344929/11 "2024-11-08T13:20:17Z")

</div>


