# \[Block\] update value in

**URL:** <https://community.thunkable.com/t/block-update-value-in/1527033>\
**Category:** Questions about Thunkable X\
**Created:** [September 25, 2021, 6:22pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033 "2021-09-25T18:22:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 6:22pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/1 "2021-09-25T18:22:28Z")

</div>

I’m trying to update a cell in Thunkable data source by using this block “update value in”

User presses a button and my blocks “get the value in” from the cell i want. Assign it to a variable. I update the variable amount. Then trying to save the new value to the data source cell.

@tatiang @domhnallohanlon Any idea what I’m doing wrong?

![Screen Shot 2021-09-25 at 11.19.57 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/12f2991e4947035a0fcda7aabf86deaed566d183.png)

 ![Screen Shot 2021-09-25 at 11.12.25 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/944e23f935d3eec85c2b6e5c345881f175d18714.png)  
 ![Screen Shot 2021-09-25 at 11.21.03 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/9791fc221feb815b0eda52696d16b3ddd5857b56.png)

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [September 25, 2021, 6:41pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/2 "2021-09-25T18:41:06Z")

</div>

Why are you increasing ExpCow by 4?

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 6:51pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/3 "2021-09-25T18:51:10Z")

</div>

@domhnallohanlon  
Troubleshooting I think what is going on is. I’m adding to my data source in thunkable but when I test the app its not updating the data source in the test environment so when I go to Get or Update the value that, column doesn’t exist.

Is some server or api down right now? Going to clear my cache etc.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 25, 2021, 7:03pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/4 "2021-09-25T19:03:12Z")

</div>

Yes, there is a kind of issue.

I just tested it with `Local Table` and did the same with `Google sheet`. The same code works with Google sheet but fails with Local Table.

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 7:05pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/5 "2021-09-25T19:05:59Z")

</div>

I’m still troubleshooting. I have found out that if I make changes to the local data source I have to uninstall the test app and reinstall to see the changes. Maybe I can clear app cache, see if that works too so I don’t have to keep reinstalling the test app.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 25, 2021, 7:08pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/6 "2021-09-25T19:08:48Z")

</div>

> [@exploriverse.com](#):
>
> Maybe I can clear app cache

Local Table in Thunkable are saved under `App Data` not under cache. you need to clear both app cache and app data. No need to remove the app, just clear app data.

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 7:10pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/7 "2021-09-25T19:10:32Z")

</div>

@muneer  
No way to clear app cache on this iphone 12 pro max ios14.7.1

If you know a way, much appreciated.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 25, 2021, 7:11pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/8 "2021-09-25T19:11:35Z")

</div>

> [@exploriverse.com](#):
>
> iphone 12 pro max ios14.7.1

I was referring to Android.

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 7:24pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/9 "2021-09-25T19:24:46Z")

</div>

@domhnallohanlon I’ve confirmed the blocks work. If I make any changes to the local database I have to reinstall the test app on my iphone. 😕

Back to coding…

---

<div class="post-metadata">

**Author:** ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)\
**Post date:** [September 25, 2021, 7:40pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/10 "2021-09-25T19:40:52Z")

</div>

Somethings still not right. I’m going to try local database and the GetCell, SetCell. Hope this works…

---

<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:15pm UTC](https://community.thunkable.com/t/block-update-value-in/1527033/11 "2024-11-08T13:15:07Z")

</div>


