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

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

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.