# \[Solved\] Use buttons to swap data sources in data viewer list

**URL:** <https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005>\
**Category:** Questions about Thunkable X\
**Tags:** solved, data-viewer\
**Created:** [March 5, 2021, 3:11pm UTC](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005 "2021-03-05T15:11:23Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [March 16, 2021, 3:37am UTC](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005/21 "2021-03-16T03:37:15Z")

</div>

@muneer any idea how make swipe right and display text to label. i got undefined .

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/5/9519d37b8191e72db75f54ae57db86c1b65d1663.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b9b0d9fbdc1ca7c7a4b61f4d0af836dc3a458d58.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 16, 2021, 10:20am UTC](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005/22 "2021-03-16T10:20:22Z")

</div>

You are trying to retrieve a value from a list and in the place where you should supply a number you put [Data\_Viewer\_List6’s Title] which is not a numeric value.

The other issue is that you are using [app variable add] as a list and as an index to itself which should not work.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [March 16, 2021, 4:39pm UTC](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005/23 "2021-03-16T16:39:37Z")

</div>

muneer,

thank for your advice. now it working fine with following block.

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

---

<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:29pm UTC](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005/24 "2024-11-08T13:29:00Z")

</div>



[Previous page](https://community.thunkable.com/t/solved-use-buttons-to-swap-data-sources-in-data-viewer-list/1146005.md?page=1)
