# I can't memorise Data

**URL:** <https://community.thunkable.com/t/i-cant-memorise-data/1061954>\
**Category:** Questions about Thunkable X\
**Created:** [January 21, 2021, 12:29pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954 "2021-01-21T12:29:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessio\_puddu](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alessio\_puddu](https://community.thunkable.com/u/alessio_puddu)\
**Post date:** [January 21, 2021, 12:29pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/1 "2021-01-21T12:29:21Z")

</div>

![Screenshot (89)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f57cbb692c4c596b3c8234103cd1c7d371dc88b8.png) ![Screenshot (90)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/685eb9e2942e73f50d12697b63cb0464109a07e7.png)  
with the buttons (mesi/months) as I click i select what i wish to memorise, what I write in the Test\_input1 to view it in List:Viewer1, with the long click i should see what memorised, there are as many blocks copies as many are the months, it works almost anything beside thaat it doesn’t memorise data, so when i restart the app everything disappears. What’s my mistake??

---

<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:** [January 21, 2021, 1:41pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/3 "2021-01-21T13:41:37Z")

</div>

Can you show the block under “Long press” which you are talking about.

Or share the project so we can better understand the problem.

---

<div class="post-metadata">

**Author:** ![alessio\_puddu](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alessio\_puddu](https://community.thunkable.com/u/alessio_puddu)\
**Post date:** [January 21, 2021, 2:09pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/4 "2021-01-21T14:09:31Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/fbf6b1615c77dd5f5cc984f80fa03c41)**

---

<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:** [January 21, 2021, 2:39pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/5 "2021-01-21T14:39:59Z")

</div>

Following my observation:

- You are saving the data to the Local Storage but you are not retrieving it anyway.
- You are using the same key “Dati” for all buttons which means that you are only overwriting the data and not saving under different keys for different buttons.
- The same blocks are repeated for every button which lends itself to “Function” which will lead in ease of maintenance.
- You are not checking for duplicates before appending to the list which could result in the same thing being repeated.

---

<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:** [January 22, 2021, 10:27am UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/6 "2021-01-22T10:27:19Z")

</div>

Dear @alessio_puddu ,

I made simple changes to you code and changed button12 and button11. If you like the change you can make it for the other buttons.

This is the modified project [Modified for Alessaio](https://x.thunkable.com/projectPage/60098e73eddeb83bf2d5c513)

This should make the information available even after closing the app and opening it again

---

<div class="post-metadata">

**Author:** ![alessio\_puddu](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@alessio\_puddu](https://community.thunkable.com/u/alessio_puddu)\
**Post date:** [January 22, 2021, 1:22pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/7 "2021-01-22T13:22:50Z")

</div>

I tried but at the Refresh I no longer see the previously written data

I tried to edit, and it seems to work, I agree  
[https://x.thunkable.com/copy/1f442749cc8f2c099d0ad1352762e6c5](https://x.thunkable.com/copy/1f442749cc8f2c099d0ad1352762e6c5)

---

<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:30pm UTC](https://community.thunkable.com/t/i-cant-memorise-data/1061954/8 "2024-11-08T13:30:33Z")

</div>


