# Detail Page Is Displaying the wrong Listview Item

**URL:** <https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 12, 2022, 4:20pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801 "2022-01-12T16:20:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [January 12, 2022, 4:20pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/1 "2022-01-12T16:20:37Z")

</div>

The vision is when you click on an item from the Listviewer it will take you to that item’s detailed page. The problem is: when you click on it, it takes me to a detailed page but it pulls up the wrong item.

 ![Screen Shot 2022-01-12 at 9.25.03 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e2c181f97237a8d5ec632ec67f939a5aea9191ac.jpeg)  
 ![Screen Shot 2022-01-12 at 9.24.42 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/252e46e666200a41b505067f6060ac23ed8a83b1.jpeg)  
 ![Screen Shot 2022-01-12 at 9.24.24 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/456cabc2f7d6424fc2a81aac5263318e7a2ebf12.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:** [January 12, 2022, 4:25pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/2 "2022-01-12T16:25:11Z")

</div>

On your searchDetails screen, what happens if you set a label’s text value to `app variable searchItem`? Let’s say you click the 2nd item in the List Viewer… what does the label display? It should show 2. Does it?

And then what happens if you replace the `app variable searchItem` blocks on the searchDetails page with the number 2? Do you see the correct information or not?

Finally, what does your database look like (at least the first few rows)? And which incorrect info is it showing (e.g. row 1, row 3, row 4)?

---

<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:** [January 12, 2022, 4:29pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/3 "2022-01-12T16:29:33Z")

</div>

Of course it will display something that might not be related to the correct data in the table.

You are using the `index` of the `List Viewer` to read values from the table (this is what I’m guessing) but you are using a **search function** to short list items in the `List Viewer` therefore, the `index of the list viewer` is not the same as the row ID in the table.

---

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [January 12, 2022, 11:16pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/4 "2022-01-12T23:16:05Z")

</div>

so should I change it out as a DataViewer instead?

---

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [January 12, 2022, 11:21pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/5 "2022-01-12T23:21:47Z")

</div>

If I click the second item it displays the correct item in the detail page… If I click the first item then the detail page is wrong. I did check the list viewer click box from index to item.

---

<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:** [January 13, 2022, 1:01am UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/6 "2022-01-13T01:01:20Z")

</div>

I wouldn’t really be able to help you without knowing the answers to the questions I asked.

---

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [January 13, 2022, 9:02am UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/7 "2022-01-13T09:02:44Z")

</div>

Actually I did answer your questions I said yes the information is correct when I click the second item and no it’s not correct when I click the first item

---

<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:** [January 13, 2022, 9:53am UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/8 "2022-01-13T09:53:51Z")

</div>

> [@delee\_techdeveloper](#):
>
> no it’s not correct when I click the first item

Can you be more specific in this point.

Try two different scenarios

- All list (no search)  
When you click on an item from the list without using the search option. Does it show the correct item the first time or it still shows different items.
- Partial list (using search)  
This time, use the search option and click an item from the search result and see if you are getting the first item correct or not.

You need to try both cases and report back so we can help determining what could be the cause.

---

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [January 18, 2022, 5:48pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/9 "2022-01-18T17:48:25Z")

</div>

I’m sorry for bugging you guys but this is the last issue that I have before launching my app:

ok so I believe the error is in the index.

What I am trying to do:

- Create a search bar that filters (search) from airtable [Picture of Preview/Blocks Shown Below]  

- When the item is clicked it goes to the DETAIL page that I have shown in the previous post.

Problem:

1. It shows the wrong row item

 ![Screen Shot 2022-01-18 at 11.44.34 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8abc26c513c920a75e37d9a30ed18574ab15135d.png)  
 ![Screen Shot 2022-01-18 at 11.49.38 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/455c7e04c2c31d530554f3e1a541c41b0650da48.jpeg)  
 ![Screen Shot 2022-01-18 at 11.51.08 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/3/73d4277a2acd62d4f664368164e47cb4ba951702.png)  
 ![Screen Shot 2022-01-18 at 11.51.18 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9e830086cd69b5b915504a925a4181b57bbd98d1.jpeg)

---

<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:** [April 18, 2022, 5:49pm UTC](https://community.thunkable.com/t/detail-page-is-displaying-the-wrong-listview-item/1670801/10 "2022-04-18T17:49:19Z")

</div>

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