# Write selected list item to local DB

**URL:** https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874
**Category:** Questions about Thunkable X
**Created:** [January 30, 2019, 8:44pm UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874 "2019-01-30T20:44:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rael74](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rael74](https://community.thunkable.com/u/rael74)
#### Post date: [January 30, 2019, 8:44pm UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/1 "2019-01-30T20:44:27Z")

</div>

I am creating a ‘things to do’ list.  
I have a list (created from a local db) and when the user selects  
something from it, it displays certain info.

I then have a button ‘add this info to different list’

How do I take selected data from one list and  
write it back to another local db ?

 ![help](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb4e61c728001caeab33f3d12bc0efbce184feae.jpeg)

---

<div class="post-metadata">

### Author: ![boogarweed](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/boogarweed/32/29198_2.png) [@boogarweed](https://community.thunkable.com/u/boogarweed)
#### Post date: [January 30, 2019, 11:21pm UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/2 "2019-01-30T23:21:38Z")

</div>

Once you add a record to a local DB, I don’t think you can delete it via blocks. You might want to save the items to an actual list and then save the list under local storage. Then you can remove an item from one list and add it to another and then save both lists.

---

<div class="post-metadata">

### Author: ![rael74](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@rael74](https://community.thunkable.com/u/rael74)
#### Post date: [January 31, 2019, 9:51am UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/3 "2019-01-31T09:51:00Z")

</div>

How do I actually do this though? I am basically creating a ‘favourites’ list. They select items from one list and it is added to another. Lots of of the advice on the web relates to App Inventor. This had a ‘add items to list’ option, which I cannot see in x-thunkable.

---

<div class="post-metadata">

### Author: ![KryptoPhil](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@KryptoPhil](https://community.thunkable.com/u/KryptoPhil)
#### Post date: [January 31, 2019, 11:45am UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/4 "2019-01-31T11:45:40Z")

</div>

if clicked elemet is not in list than add to list …

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [May 11, 2019, 8:37pm UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/6 "2019-05-11T20:37:21Z")

</div>

Hey @rael74, you can see an example of something like this on @darren’s YouTube channel:

---

<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:13pm UTC](https://community.thunkable.com/t/write-selected-list-item-to-local-db/66874/7 "2024-11-08T12:13:47Z")

</div>


