# \[Solved\] Stored Variable problems

**URL:** <https://community.thunkable.com/t/solved-stored-variable-problems/298797>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [November 1, 2019, 3:17pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797 "2019-11-01T15:17:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 1, 2019, 3:17pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/1 "2019-11-01T15:17:12Z")

</div>

I’m making an app that allows the user to scan a book’s ISBN. If the person has read the book, they can save the book to their personal book list. Here are the blocks I use to store the the book to the book list and display the booklist:

 ![booklisting2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9a43e3c865578e045e7ad2e40f8a05627e395510.jpeg)

My issue is, the list is not persistent. When I exit the program (both in Thunkable Live and in Android) and re-enter the program to view the list, the list is empty.

I want this app to be able to store an individual’s list for later review. I’ve had similar issues of no persistence with the Local DB method, and can’t figure out how to do this in Local Storage. Any help would be appreciated!

Thanks for the help, Doug.

---

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 1, 2019, 5:33pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/2 "2019-11-01T17:33:12Z")

</div>

Just tested this on iOS, same results…no persistence.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 1, 2019, 6:47pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/3 "2019-11-01T18:47:36Z")

</div>

On your picture, I do not see the block, by which the list must stored.

---

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 1, 2019, 6:57pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/4 "2019-11-01T18:57:49Z")

</div>

Here’s where I’m at now:

 ![current](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/9/19ad0c423991b2baf4c8ecb79301e12938a74bfa.jpeg)

I add a row to the local db. When someone wants to view the list, I load the local db into a temporary list “templist” and load that into the viewer.

My problem is that when I close the app and reopen it, the data that was stored in the local db disappears.

Thanks

Doug

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 1, 2019, 7:01pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/5 "2019-11-01T19:01:51Z")

</div>

Local DB can not save data. To save data locally, use a global variable of type **storage**

In my opinion the Local DB has only one advantage - it is faster than the block variable app. For this reason, I would use the Local DB for data transfer between screens. Using it as a data table - this extra component without which can be easily dispensed.

---

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 1, 2019, 7:20pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/6 "2019-11-01T19:20:55Z")

</div>

Thanks for the help. I tried using a global variable of the type storage to save the list. Same problem, the data isn’t there when I reopen the app

 ![booklisting3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/ef4cd8db52d6c20a8d446aea31e8a8aaab078bcd.jpeg) .

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 1, 2019, 7:45pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/7 "2019-11-01T19:45:24Z")

</div>

On your images list stored in a variable of type app. App-variables can not store data between sessions. You need to use stored-variable

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0e888ad8c155e2f0a8e765641a14fc3dc5a0655.png)

---

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 2, 2019, 2:58pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/8 "2019-11-02T14:58:43Z")

</div>

Ha! Yep, messed that up. It’s all working now! thanks for the help!

Doug

---

<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, 12:08pm UTC](https://community.thunkable.com/t/solved-stored-variable-problems/298797/9 "2024-11-08T12:08:28Z")

</div>


