# Data list viewer item click change data source

**URL:** https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762
**Category:** Questions about Thunkable X
**Created:** [March 26, 2022, 3:12am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762 "2022-03-26T03:12:56Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 3:12am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/1 "2022-03-26T03:12:56Z")

</div>

i use data viewer list, but i cant find block to change data source ( google sheet )  
How i can click item index 0 or 1 or 2 … and change data source to another sheet  
and how i can make event when item clicked (item index 1 or 2 or 3 )and do something …  
Thank you very much

---

<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 26, 2022, 4:32am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/2 "2022-03-26T04:32:28Z")

</div>

Click the + symbol next to Data Sources and add your Google Sheet. Once you do that, you will have the Data Sources “drawer” in the list of blocks in the Blocks tab.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b92995165bf011512547b57a5ad4eeb3b086baec.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 26, 2022, 5:47am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/3 "2022-03-26T05:47:23Z")

</div>

> [@pdh1982](#):
>
> i cant find block to change data source ( google sheet )

You cannot change the Data Source by code. The source you select at design time is the only source that will be available to the DVL (Data Viewer List).

---

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 7:00am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/4 "2022-03-26T07:00:29Z")

</div>

Thank you, how about item in DVL clicked ?  
If click first item and call webviewer to url aaa … second item and call webviewer go to url bb …

---

<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 26, 2022, 7:02am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/5 "2022-03-26T07:02:29Z")

</div>

You can use the when clicked block for that:

> **[Data Viewer List](https://docs.thunkable.com/data-viewer-list#click)**
>
> Create powerful, no-code, data-driven apps connected directly to Google Sheets, Airtable, or stored locally.

The green row id block corresponds to a row in your data source.

---

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 7:23am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/6 "2022-03-26T07:23:01Z")

</div>

![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/13d8415d28d45beaebb618a10d892f777b845585.png)  
It dont work !

---

<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 26, 2022, 7:37am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/7 "2022-03-26T07:37:44Z")

</div>

Try this:

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

---

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 8:43am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/8 "2022-03-26T08:43:58Z")

</div>

Thank you very much

---

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 9:52am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/9 "2022-03-26T09:52:51Z")

</div>

Oh, after read again, i wrong, i mean change sheets in data source, how i call DVL change data to another sheet ?

---

<div class="post-metadata">

### Author: ![pdh1982](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@pdh1982](https://community.thunkable.com/u/pdh1982)
#### Post date: [March 26, 2022, 11:24am UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/10 "2022-03-26T11:24:36Z")

</div>

i mean chang DVL source to another sheet, can you help me ?

---

<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 26, 2022, 12:26pm UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/11 "2022-03-26T12:26:20Z")

</div>

> [@pdh1982](#):
>
> chang DVL source

You **cannot** change the `Data Source` of the DVL by code

---

<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 26, 2022, 3:51pm UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/12 "2022-03-26T15:51:10Z")

</div>

You would have to create a separate DVL for each data source. It’s better to figure out a way to use a single data source to store all the data you need.

Please consider adding a comment to this feature request:

> <https://github.com/thunkable/thunkable-issues/issues/1036>
>
> \*\*Is your feature request related to a problem? Please describe.\*\*
> Airtable is …a great way to store data, especially data that includes photos like student photos and names for a student directory app. Data Viewer Lists/Grids (DVL/Gs) are a great way to display data from an external source such as Airtable.
> 
> So what's the problem? DVL/Gs sync up to Airtable but can only connect to one base with one custom view (optionally) at a time. So if you want to have separate screens or layouts in Thunkable, you have to have multiple DVL/G components and show/hide them constantly to show different data. An example of this might be to show a 3rd grade class OR a 4th grade class within a single screen based on a button click.
> 
> \*\*Describe the solution you'd like\*\*
> I'd like to have the ability to switch Airtable bases and custom views for a DVL/G using blocks. I know this is a big ask based on the way the blocks are structured with drop-down menus but it would make Thunkable so much more flexible and powerful for connecting to data sources.
> 
> \*\*Describe alternatives you've considered\*\*
> 
> \*\*Which platform are you asking for?\*\*
> Thunkable X
> 
> \*\*Additional context\*\*

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [June 24, 2022, 3:51pm UTC](https://community.thunkable.com/t/data-list-viewer-item-click-change-data-source/1802762/13 "2022-06-24T15:51:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
