# \[Solved\] Help to retrieve "all labels in row"

**URL:** https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910
**Category:** Questions about Thunkable X
**Created:** [May 14, 2022, 10:33am UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910 "2022-05-14T10:33:48Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [May 14, 2022, 10:33am UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/1 "2022-05-14T10:33:48Z")

</div>

hi

I made my choice the clones are faster that’s for sure  
for the needs of my application I reproduce a line (witch contains 3 labels) a certain number of times is it possible when I modify a line to modify the corresponding cloned line or am I obliged to reproduce them all?

---

<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 14, 2022, 4:02pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/2 "2022-05-14T16:02:12Z")

</div>

You can use the “find first occurrence of” list block to get the item/index number of the label (or other component) in “all labels in row” (or column or group or screen) and then get the list item with that number from the “all labels in row” and set its text value.

I know that probably doesn’t make a lot of sense but I’m on my phone and can share a screenshot later.

Here’s an example:

> [@Changing properties of cloned components (DIY Advanced Listviewer)](https://community.thunkable.com/t/changing-properties-of-cloned-components-diy-advanced-listviewer/153213):
>
> We’re working hard to bring you the [Extended Listviewer](https://docs.thunkable.com/release-notes#coming-soon-to-thunkable) component to make developing your app even faster, but in the meantime here’s a DIY approach. By using the “Any Component” blocks in Thunkable, you are able to clone entire rows or columns of content. But what if you then want to change some of the components within the row or column? Design Usually you can leave the precise details of your design until the end, but in this case you need to know what components will be…

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [May 14, 2022, 8:23pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/3 "2022-05-14T20:23:17Z")

</div>

hi

thanks for the reference but i sink 😕

contenclones is the column where i cloned the row after creating the clones I used this  
 ![Capture d’écran 2022-05-14 à 23.07.17](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/4701e1a70707c5119f98ec4d81322a6a17aa5189.png)

**i get all the labels of all rows**

the pattern i clone

 ![Capture d’écran 2022-05-15 à 09.39.26](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/28302b3970b7a3937cf1de0842ee40d981248197.png)

![Capture d’écran 2022-05-15 à 09.31.56](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/6051e0d4d366fee05534153c0b66b2922b33b3e6.png)

row123 is a container visible off

for the moment I only use the content of the first column in relation to its content (I have his **ID** when I click on it)  
and I would like to have the **ID** of the other two associated labels

update  
I found this: (is there better?)

 ![Capture d’écran 2022-05-15 à 12.08.13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/134aacd000d8a1cd2051a5abbbfd7250003e9600.png)

the indx variable is the line where the clicked element is located

---

<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: [May 15, 2022, 10:16am UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/4 "2022-05-15T10:16:02Z")

</div>

It is a list inside a list.

When you close any row or column you actually create a new row or column so you need to get all labels of the newly cloned not the original.

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [May 15, 2022, 10:27am UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/5 "2022-05-15T10:27:24Z")

</div>

hi

> get all labels of the newly cloned not the original.

I didn’t know how to do

should I save the IDs in a list when I create the clones?

---

<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: [May 15, 2022, 1:03pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/6 "2022-05-15T13:03:37Z")

</div>

> [@bibbi](#):
>
> should I save the IDs in a list when I create the clones?

Depends on what you want to do. If you explain what you want to achieve may be I can create a demo project to show how.

---

<div class="post-metadata">

### Author: ![bibbi](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@bibbi](https://community.thunkable.com/u/bibbi)
#### Post date: [May 15, 2022, 2:49pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/7 "2022-05-15T14:49:05Z")

</div>

hi

what i want to achieve ?

reproduce a pattern and more generally know the ID of any component to be able to modify it if necessary  
today my pattern is simple it consists of 3 labels but what will happen with buttons and images?

it is true that I did not understand your remark and I would have liked because it is perhaps more efficient and faster than what I found and to see the updates being carried out almost without flash because I no longer clone all the lines, it’s gratifying  
I have come a long way and I owe it to you  
a big thank-you

---

<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: [May 15, 2022, 7:39pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/8 "2022-05-15T19:39:14Z")

</div>

Hello @bibbi

I made an example to show what can be done with cloning  
[https://x.thunkable.com/projectPage/628128717b2e670011854883](https://x.thunkable.com/projectPage/628128717b2e670011854883)

In this example, if you click the button `Clone rows` The code will first clear any existing rows in the column and then create sample rows.

You can then use the lower part of the screen to select the column and the row and then type anything you want in the `text input` box then click the button `Change the selected cell`.

The text you typed in the `text input` will be shown in the selected cell by the row and column numbers you selected.

Hope this will make things clearer.

---

<div class="post-metadata">

### Author: ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)
#### Post date: [May 15, 2022, 7:54pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/9 "2022-05-15T19:54:44Z")

</div>

Works like a charm.  
And even if the purpose is to only exemplify the power of cloning, it seems like a polished app with nice icons and validated inputs 😊  
I didn’t expect less from @muneer thought 😇

---

<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 15, 2022, 8:22pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/10 "2022-05-15T20:22:48Z")

</div>

Really nice demo, @muneer! Very useful.

---

<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: [May 15, 2022, 8:44pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/11 "2022-05-15T20:44:59Z")

</div>

> [@mimostel](#):
>
> I didn’t expect less

Thank you @mimostel

> [@tatiang](#):
>
> Really nice demo

Thank you @tatiang

---

<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 13, 2022, 8:45pm UTC](https://community.thunkable.com/t/solved-help-to-retrieve-all-labels-in-row/1875910/12 "2022-08-13T20:45:11Z")

</div>

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