# Search bar - dataview list?

**URL:** <https://community.thunkable.com/t/search-bar-dataview-list/2615159>\
**Category:** Questions about Thunkable X\
**Tags:** data-viewer\
**Created:** [September 26, 2023, 7:11pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159 "2023-09-26T19:11:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.lorentzonsi](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thomas.lorentzonsi](https://community.thunkable.com/u/thomas.lorentzonsi)\
**Post date:** [September 26, 2023, 7:11pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159/1 "2023-09-26T19:11:35Z")

</div>

Hi,

I try to create a automatic search bar for a dataview list, but can get it to work. I have followed this tutorial [https://community.thunkable.com/t/making-a-search-bar/60939](https://community.thunkable.com/t/making-a-search-bar/60939) but compared with the tutorial I assume that I need to “Set data\_viewer\_List\_Wrapper” instead of “Text\_item for List\_viewer”. Any ideas why this don’t work?

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

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed0c2ddf127a2e6a93a049f818c550663f2e88a9.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:** [September 26, 2023, 7:36pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159/2 "2023-09-26T19:36:09Z")

</div>

Your green Set block is outside of the loop. You can’t use a loop index variable (i) outside of a loop.

---

<div class="post-metadata">

**Author:** ![thomas.lorentzonsi](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thomas.lorentzonsi](https://community.thunkable.com/u/thomas.lorentzonsi)\
**Post date:** [September 26, 2023, 8:29pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159/3 "2023-09-26T20:29:25Z")

</div>

I have moved the green Set block inside the loop but nothing happens, same as before, all rows are shown.

---

<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:** [September 26, 2023, 9:19pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159/4 "2023-09-26T21:19:57Z")

</div>

Your tempList variable needs to be a list of Data Viewer List component IDs. Is it? I’m guessing it isn’t. But you can get the block you need from the Any Component drawer. It will provide a list of all DVLs in your screen/group etc.

Perhaps you’re following this? [Conditional Formatting of a Data Viewer List (aka "Painting the DVL")](https://community.thunkable.com/t/conditional-formatting-of-a-data-viewer-list-aka-painting-the-dvl/2078697)

Also, I feel like there was a known issue with using DVL wrappers but I’m not finding it at the moment.

---

<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:** [December 25, 2023, 9:20pm UTC](https://community.thunkable.com/t/search-bar-dataview-list/2615159/5 "2023-12-25T21:20:57Z")

</div>

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