# Dynamic Flex Repeater Instances

**URL:** <https://forum.inductiveautomation.com/t/dynamic-flex-repeater-instances/30472>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [December 5, 2019, 4:38pm UTC](https://forum.inductiveautomation.com/t/dynamic-flex-repeater-instances/30472 "2019-12-05T16:38:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 5, 2019, 5:21pm UTC](https://forum.inductiveautomation.com/t/dynamic-flex-repeater-instances/30472/2 "2019-12-05T17:21:31Z")

</div>

As the error states, the params for each instance are expected to be an object. try:

```auto
x = []
for row in range(value.getRowCount()):
	y = {}
	cols = ["partnum", "qtyscheduled", "note"]
	for i in range(value.getColumnCount()-1):
		y[cols[i]] = value.getValueAt(row, i)
	x.append(y)
self.props.instances = x
return self.props.instances

```

Note: I didn’t run this myself, but this will turn your inner list into a dictionary (object), which is the structure expected for each instance’s params.

---

_[View the full topic](https://forum.inductiveautomation.com/t/dynamic-flex-repeater-instances/30472)._
