# Any component question - Can we access the component name?

**URL:** <https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435>\
**Category:** Questions about Thunkable X\
**Created:** [January 21, 2024, 11:43am UTC](https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435 "2024-01-21T11:43:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedegarcia30hzc97a](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@fedegarcia30hzc97a](https://community.thunkable.com/u/fedegarcia30hzc97a)\
**Post date:** [January 21, 2024, 11:43am UTC](https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435/1 "2024-01-21T11:43:30Z")

</div>

Hi

Im developing an app where i want to show especific Airtable rows in a set of labels (they could be buttons also). The design idea is the following, i have 20 labels name lPedidoX, being X consecutive numbers 1 to 20.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4e54d3211fb4aec7337f113d56a436d1e20af0e0.png)

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

The content of each label is retrieved from airtable concatenating 3 columns our of 10 based on different conditions.

When the user click on any lable, id like to update the specific row from Airtable that corresponds to that printed label.

As a potential solution i though of creating a list of objects when the screen starts, so when every label is being filled up i also create an array with the label variable name and the corresponding airtable rowId used to create the labels text.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/5050086380be8d5deab8359eaedf1234f3a1f35e.png)

Now the challenge is to determine what label was pressed so i can retrieve the corresponding rowID form the object lists…I could to 20 If label clicked but i guess its better to use When Any label Clicked (what is instead of 20 i have 100 or 1000 labels to check)

My issue is cant get the clicked label variable name from the component only the component contents such as taxt, color, etc…Do you know if what im trying to achieve is possible?

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

Any ideas?

---

<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 21, 2024, 6:53pm UTC](https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435/2 "2024-01-21T18:53:11Z")

</div>

> [@fedegarcia30hzc97a](#):
>
> Now the challenge is to determine what label was pressed so i can retrieve the corresponding rowID form the object lists…I could to 20 If label clicked but i guess its better to use When Any label Clicked (what is instead of 20 i have 100 or 1000 labels to check)

See this demo I made: [Thunkable](https://x.thunkable.com/copy/82b5e2b7cefa97cc83a32f194c84aa8f)

---

<div class="post-metadata">

**Author:** ![fedegarcia30hzc97a](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@fedegarcia30hzc97a](https://community.thunkable.com/u/fedegarcia30hzc97a)\
**Post date:** [January 21, 2024, 9:16pm UTC](https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435/3 "2024-01-21T21:16:28Z")

</div>

very interesting approach @tatiang , it works perfect for my needs.

Thank you!

---

<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 20, 2024, 9:16pm UTC](https://community.thunkable.com/t/any-component-question-can-we-access-the-component-name/2794435/4 "2024-04-20T21:16:31Z")

</div>

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