# How to make loops of rows and repeat them dynamic number of times

**URL:** <https://community.glideapps.com/t/how-to-make-loops-of-rows-and-repeat-them-dynamic-number-of-times/61391>\
**Category:** Community Resources\
**Tags:** tutorial\
**Created:** [May 5, 2023, 3:30pm UTC](https://community.glideapps.com/t/how-to-make-loops-of-rows-and-repeat-them-dynamic-number-of-times/61391 "2023-05-05T15:30:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Tamara\_Didenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tamara_didenko/32/42215_2.png) [@Tamara\_Didenko](https://community.glideapps.com/u/Tamara_Didenko)\
**Post date:** [May 5, 2023, 6:13pm UTC](https://community.glideapps.com/t/how-to-make-loops-of-rows-and-repeat-them-dynamic-number-of-times/61391/3 "2023-05-05T18:13:53Z")

</div>

Hi @David_Gabler,

Thank you for taking a look and bringing up your questions. I see how this can be confusing =)

I’ve changed the prototype a little bit; let me know if this makes it any clearer. But yes, you guessed it right! Each loop can have any number of steps, which will be repeated in the same order for each loop. So the total number of steps is the Number of loop repeats x \* the Number of steps for each loop.  
 ![CleanShot 2023-05-05 at 14.07.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/d/6d8e29c57f0ab3ca0cd8463def33e36fe5e68394.gif)

* * *

I was using my app as an example, but I can see other implications as well. So, for instance, here’s a question that was brought up on this forum before:

> [@Looped Actions](https://community.glideapps.com/t/looped-actions/32845/3):
>
> My current situation where I needed this was a production list:
> 
> Product A consists of 2x Component A & 3x Component B
> 
> When planning to manufacture 100 of product A I’d like to automatically generate orders for 200 units Component A and 300 units of Component B

So, to enable this, the `loops` table will become a `products` table. The `steps` table will become a components table and will need to have the same “Repeat text” logic added. But in the end, you can create a UI that will take input of “I want to order 100 of Product A” and will turn it into a list of products.

I think there are other use cases too.

* * *

PS: hm, I thought there used to be a way to copy apps. Not seeing it now though  
PS2: Yeah, looks like the ability to copy the app and sheets is unavailable in the new Glide. Here are screenshots of my tables though

 ![CleanShot 2023-05-05 at 14.21.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/4/74ae0219f0ae43b0640a181fb9f9c011d9792388.jpeg)  
 ![CleanShot 2023-05-05 at 14.21.28](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/9/b95589086941f64301f32ab408171fb0691c2abb.jpeg)  
 ![CleanShot 2023-05-05 at 14.21.35](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/d/cdc40dba9f369f9c455698f47c6f397f499b35aa.jpeg)  
 ![CleanShot 2023-05-05 at 14.21.41](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/ab670454a691909393dfd78fe6794cc39b7be87d.jpeg)  
 ![CleanShot 2023-05-05 at 14.21.48](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/e/7edcfd3350694ce67f6df2340275be180583697e.jpeg)

---

_[View the full topic](https://community.glideapps.com/t/how-to-make-loops-of-rows-and-repeat-them-dynamic-number-of-times/61391)._
