# How to convert the Row ID to an integer from a Data Source

**URL:** <https://community.thunkable.com/t/how-to-convert-the-row-id-to-an-integer-from-a-data-source/3018379>\
**Category:** Questions about Thunkable X\
**Created:** [May 22, 2024, 5:14pm UTC](https://community.thunkable.com/t/how-to-convert-the-row-id-to-an-integer-from-a-data-source/3018379 "2024-05-22T17:14:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylan.aberdein2n85](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@dylan.aberdein2n85](https://community.thunkable.com/u/dylan.aberdein2n85)\
**Post date:** [May 22, 2024, 5:14pm UTC](https://community.thunkable.com/t/how-to-convert-the-row-id-to-an-integer-from-a-data-source/3018379/1 "2024-05-22T17:14:51Z")

</div>

I am trying to build an app that associates objects with concepts to help with memorization. The basic premis is that in the app you have rooms of a house and in each room you have many objects which I have created sprites for. I want to be able to click on an image and it then takes me to an information displaying screen, takes the associated value (concept) out of a data source and display the concept in a rich text field as well as the objects name. I want to do this without the use of a data viewer list and rather just use the images or sprites in the room as the list “items”. However I do not have access to the row id as I am not using an actual data viewer. How would I be able to access the row ID or somehow convert it into an integer to use?

 ![Screenshot 2024-05-22 181354](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/6/c62e0a2b4d5f7527509defa292d6189a7608c568.png)  
 ![Screenshot 2024-05-22 181419](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/7/a773067b3d78480df661251ad02ee21864153ac3.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:** [May 23, 2024, 2:25am UTC](https://community.thunkable.com/t/how-to-convert-the-row-id-to-an-integer-from-a-data-source/3018379/2 "2024-05-23T02:25:25Z")

</div>

Here’s how I would do this:

```auto
When Microwave Click
     set app variable clickedObjectName to "Microwave"
     set app variable clickedObjectRowNum to find first occurrence of clickedObjectName in List of Items in Item Name in Sheet 1
     navigate to Info Display Kitchen

When Info Display Kitchen Opens
     set ItemNameLabel's Text to get value from Kitchen DS in Sheet 1 in Item Name for row id app variable clickedObjectRowNum

```

---

<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:** [August 21, 2024, 2:26am UTC](https://community.thunkable.com/t/how-to-convert-the-row-id-to-an-integer-from-a-data-source/3018379/3 "2024-08-21T02:26:03Z")

</div>

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