# Using Number as Input, corresponding Number of lexRepeater/Canvas to be Created Automatically

**URL:** <https://forum.inductiveautomation.com/t/using-number-as-input-corresponding-number-of-lexrepeater-canvas-to-be-created-automatically/94477>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 11, 2024, 5:31pm UTC](https://forum.inductiveautomation.com/t/using-number-as-input-corresponding-number-of-lexrepeater-canvas-to-be-created-automatically/94477 "2024-08-11T17:31:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghuraaman\_Kannan](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@Raghuraaman\_Kannan](https://forum.inductiveautomation.com/u/Raghuraaman_Kannan)\
**Post date:** [August 11, 2024, 5:31pm UTC](https://forum.inductiveautomation.com/t/using-number-as-input-corresponding-number-of-lexrepeater-canvas-to-be-created-automatically/94477/1 "2024-08-11T17:31:55Z")

</div>

Hi all,  
I have an application, requires Dynamic FlexRepeater/Canvas but with number entered by operator,  
Eg. if the operator enters 10, i have to create 10 no's of FlexRepeater/canvas in column wise.  
if the entry is more than 10, 11th object should create in next row.  
Someone please help with the code.

Thanks

---

<div class="post-metadata">

**Author:** ![amy.sudibyo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amy.sudibyo/32/38659_2.png) [@amy.sudibyo](https://forum.inductiveautomation.com/u/amy.sudibyo)\
**Post date:** [August 12, 2024, 12:10am UTC](https://forum.inductiveautomation.com/t/using-number-as-input-corresponding-number-of-lexrepeater-canvas-to-be-created-automatically/94477/2 "2024-08-12T00:10:51Z")

</div>

Make a custom prop on your view to store the number of instances.  
Bind your flex repeater instances prop to this custom prop and then use a script transform to create the object structure.

You may also need to add some refresh logic reevaluate the transform if the count changes - not sure what your application requires here.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/0/307ce0012fc2c8a462d8d4f69c6230f011c1f21e.png)
