# Item click list view con local storage

**URL:** <https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867>\
**Category:** Questions about Thunkable X\
**Created:** [March 13, 2022, 3:53pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867 "2022-03-13T15:53:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 3:53pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/1 "2022-03-13T15:53:34Z")

</div>

hello, maybe you can help me if it’s not too much trouble in a code that I’m testing but it doesn’t work out, I managed to save the data in local storage, but of course I want the data to be displayed in a text input through a list view and which clicking on the list view shows me the data for each of the text entries.  
I do it this way but all the names are shown together in the text input just like the surnames. I want that when I click on one of the name items, the data of that name is shown separately.  
If someone can help me I thank you

regards

here I leave the code:

 ![local storage](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b8caf9dd9d2d01ac7386fd4a49ce6f1d397bb924.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:** [March 13, 2022, 4:04pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/2 "2022-03-13T16:04:23Z")

</div>

You should not be using Local Storage. You should use a [local db](https://docs.thunkable.com/local-db).

More info: [Local Storage - Thunkable Docs](https://docs.thunkable.com/local-storage)

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 4:35pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/3 "2022-03-13T16:35:20Z")

</div>

Hello, thanks for your answer and how would I go about saving the name and surnames and then clicking on the item and seeing the data in each text entry, that is, showing the name and surnames of a certain user, not showing everything in one text input.

Thank you

---

<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:** [March 13, 2022, 5:30pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/4 "2022-03-13T17:30:59Z")

</div>

The same way. But you’d use the Get Value block from the Data Sources drawer and set the row id to the green index block.

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 7:30pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/5 "2022-03-13T19:30:11Z")

</div>

Sorry but I don’t understand, could you pass an example of how to save and obtain data in local db.

---

<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:** [March 13, 2022, 7:42pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/6 "2022-03-13T19:42:54Z")

</div>

There’s an example here:

> [@Querying Local DB to Return List of Items that Have a Match to a Query in their Row](https://community.thunkable.com/t/querying-local-db-to-return-list-of-items-that-have-a-match-to-a-query-in-their-row/175565/2):
>
> Hello there, Welcome to our Community smile tada tada So, I assume that u are using a listviewer to select States. I think, this can help u - [image] Hope it helps smile Thanks! tada

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 8:06pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/7 "2022-03-13T20:06:58Z")

</div>

Thank you very much for your contribution, one last thing, I don’t know how the local db works, but how do I create the Name and surname columns and save the data using a button.

---

<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:** [March 13, 2022, 8:14pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/8 "2022-03-13T20:14:11Z")

</div>

You can Google _local db Thunkable_ to see documentation and videos that will help explain how to do that.

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 8:22pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/9 "2022-03-13T20:22:13Z")

</div>

I’ve been looking but I don’t see anything concrete would you have an example

---

<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:** [March 13, 2022, 9:15pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/10 "2022-03-13T21:15:34Z")

</div>

From the main design screen use the **+** sign  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/505b83b8883ed15ffaca1bec93140e9eb18feaa1.png)

You will see a list of available `Data Source connections`. Click the `Create New` button.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/53c61bea806759c8f04f835377ef549340781c20.png)

You will get to choose the `Data Source Type`, select `Create your own table`.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0c2c1f2e475723ea77294799fa31cc884bd32694.png)

Type a name for your table and click `Create`.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b423897713c81c250e9518c897acb93d89dd8faa.png)  
You should be seeing something like this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d5dd87f89503e1027a2159ac32e1dfba32c30b57.png)

Click on the column name like `Column 1 x` and change it to the name you want. Do the same thing for the other column. You can click on `+ New Column` to add more columns. Like this.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/6/5624200d16a47d22a57fdf079e9a835e8e015bf1.png)

Hope this will help you to setup the Local Table for your app

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 9:22pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/11 "2022-03-13T21:22:10Z")

</div>

Thanks for the help, I got there but the code to save data in that table through code, that is, when putting name and surnames, for example, they are saved in the table, not put it directly in the table. I don’t know how the block would be

---

<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:** [March 13, 2022, 9:29pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/12 "2022-03-13T21:29:09Z")

</div>

To save **new** data in the `Local Table` use this block.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c9c0d4dda2532db0557084ee698d315c9bcc5e3.png)

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 9:52pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/13 "2022-03-13T21:52:31Z")

</div>

sorry but where is the create row block in the table because I don’t see it in thunkable when clicking on local db it comes out this way there is no such option

 ![local db1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/8931ad6bf3fb71f41978b947deecedf335c84e52.png)

---

<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:** [March 13, 2022, 9:56pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/14 "2022-03-13T21:56:26Z")

</div>

You are looking at the wrong blocks.

First create the table using the **+** as I explained in the last post.  
Start from here  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/f/bffeff190969dd1684f7e6c6bc9d18301bd5ba2d.png)

Once you create the table you can then access it from this option.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e4141e99b75e3c17dfabb33144463b6068a74f7.png)

See this demo project  
[https://x.thunkable.com/projectPage/5fb9fb1dbfeb240011084d78](https://x.thunkable.com/projectPage/5fb9fb1dbfeb240011084d78)

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 13, 2022, 11:15pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/15 "2022-03-13T23:15:45Z")

</div>

Thank you very much for your help, it was very useful and I managed to see where it was, greetings.

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 14, 2022, 12:47am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/16 "2022-03-14T00:47:03Z")

</div>

I try to save the data through the block but it does not save the data.

 ![Screenshot_20220314-004323_Chrome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/39e6d6ccdb8db99c63e6d5cd3a997be2d6bdd5b4.jpeg)

---

<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:** [March 14, 2022, 2:23am UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/17 "2022-03-14T02:23:44Z")

</div>

How do you know it doesn’t save the data?

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 14, 2022, 1:01pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/18 "2022-03-14T13:01:13Z")

</div>

because they are supposed to be stored in the data sources of the created table.

---

<div class="post-metadata">

**Author:** ![yamiletcurbeloaceved](https://avatars.discourse-cdn.com/v4/letter/y/ebca7d/32.png) [@yamiletcurbeloaceved](https://community.thunkable.com/u/yamiletcurbeloaceved)\
**Post date:** [March 14, 2022, 2:54pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/19 "2022-03-14T14:54:19Z")

</div>

Apparently I was able to investigate that they are saved but they are not shown in the table

---

<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:** [March 14, 2022, 3:02pm UTC](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867/20 "2022-03-14T15:02:41Z")

</div>

To show saved values, you need to view it in the app either by looping throw records or by using DVL (Data Viewer List). You will not see any data changes when you the table in the design page.

[Next page](https://community.thunkable.com/t/item-click-list-view-con-local-storage/1781867.md?page=2)
