# How to get value for row id

**URL:** <https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784>\
**Category:** Questions about Thunkable X\
**Created:** [October 7, 2022, 12:51am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784 "2022-10-07T00:51:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 7, 2022, 12:51am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/1 "2022-10-07T00:51:01Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/378e2467e32873b0b12e3173375da8d2a8464eb4.png)  
I was create scan barcode app.  
When get value from barcode will retrieve data from the data sauce.  
How do enter numbers in every row?

---

<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:** [October 7, 2022, 6:00am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/2 "2022-10-07T06:00:15Z")

</div>

To find the row number that matches the scanned barcode, use the [find first occurrence of item](https://docs.thunkable.com/lists#find-first-last-occurrence) block. For the list, use the `list of values in flashcard` block and for the item, use the green value block.

Assign that row number to a variable and then use that variable in your `get value` blocks.

---

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 8, 2022, 3:26am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/3 "2022-10-08T03:26:14Z")

</div>

My english not good,And this is my first time for Thunkable. Can you have samply image? Please

---

<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:** [October 8, 2022, 4:43am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/4 "2022-10-08T04:43:45Z")

</div>

I think maybe you’re using the Snap to Place interface so my blocks may look a little different since I’m using the Drag and Drop interface.

The blocks below can be found on the first screen of this project:

[https://x.thunkable.com/copy/e69d0967c50fd5a9855f1f298add5053](https://x.thunkable.com/copy/e69d0967c50fd5a9855f1f298add5053)

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

---

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 8, 2022, 5:24am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/5 "2022-10-08T05:24:36Z")

</div>

Thank you but it not work.

[https://x.thunkable.com/copy/c51209ba5d9b57dc71d2891ea002fdc5](https://x.thunkable.com/copy/c51209ba5d9b57dc71d2891ea002fdc5)

---

<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:** [October 8, 2022, 5:26am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/6 "2022-10-08T05:26:29Z")

</div>

I’m not able to open that project link. Is it a private project?

What is not working?

Did you check the value of `app variable barcode found at row num`? What is that value when you scan a barcode that exists in your data source?

What happens if you set a label’s text to Image5’s Picture? What is displayed?

---

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 8, 2022, 5:30am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/7 "2022-10-08T05:30:07Z")

</div>

i change public project  
label text is show correct.  
i was check data source is correct.

---

<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:** [October 8, 2022, 5:30am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/8 "2022-10-08T05:30:41Z")

</div>

Please try these blocks:

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

You can use my project but you need to attach your own data source. I did not set it up to actually work with my data source.

[https://x.thunkable.com/copy/6abf94d4220dc9766a7c959897482975](https://x.thunkable.com/copy/6abf94d4220dc9766a7c959897482975)

---

<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:** [October 8, 2022, 5:31am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/9 "2022-10-08T05:31:03Z")

</div>

Thank you but you need to create the share link again and post it here.

The demo I posted works for me. I scanned a barcode that exists in my data source and it found it and displayed “row num=4”.

---

<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:** [October 8, 2022, 5:31am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/10 "2022-10-08T05:31:27Z")

</div>

What do you mean by “show correct”? What **actual** number does it show? And which label? The row # or the picture? Or both?

---

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 8, 2022, 5:55am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/11 "2022-10-08T05:55:49Z")

</div>

i know that problem.  
My database is insert link from media files.  
It can’t read link redirect to image or sound.  
If i change to google sheet it work!!

How to use link in data source ?

---

<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:** [October 8, 2022, 6:01am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/12 "2022-10-08T06:01:43Z")

</div>

Can you post an example of an image link/url from your data source?

---

<div class="post-metadata">

**Author:** ![wpp.appbookxgaxd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wpp.appbookxgaxd](https://community.thunkable.com/u/wpp.appbookxgaxd)\
**Post date:** [October 8, 2022, 6:07am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/13 "2022-10-08T06:07:07Z")

</div>

![Screenshot 2022-10-08 130404](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/6/c6d0e6c7fa98198a50c13fc6d28e121e7487ad48.jpeg)  
This data source use link from thunkable

 ![Screenshot 2022-10-08 130424](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f64601d3cecb03eb9d1f1b73b1ef1fbe6abd282a.jpeg)  
And this from google sheet

I can’t use google sheet,  
I want to use offline app. some place in thailand is low internet

---

<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:** [October 8, 2022, 6:27am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/14 "2022-10-08T06:27:40Z")

</div>

You need to host your images in a public server. I’m not even sure where you got the [https://x.thunkable.com/project/](https://x.thunkable.com/project/)… links but if you want to use images that have been uploaded to the project then you just use the filename without a path, like Image3.png. Then you can access them when offline.

Your Google Drive links are probably not set to public. So you need to fix the permissions or use a public server such as Cloudinary.

If you still can’t get this to work, please post the **full url** to one or more of your images **as text** , not screenshots. I need to be able to access those images to help you further.

---

<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:** [January 6, 2023, 6:27am UTC](https://community.thunkable.com/t/how-to-get-value-for-row-id/2072784/15 "2023-01-06T06:27:53Z")

</div>

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