# Power Table configureEditor inside Template Repeater

**URL:** <https://forum.inductiveautomation.com/t/power-table-configureeditor-inside-template-repeater/22203>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [January 29, 2019, 7:47pm UTC](https://forum.inductiveautomation.com/t/power-table-configureeditor-inside-template-repeater/22203 "2019-01-29T19:47:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [January 30, 2019, 5:46pm UTC](https://forum.inductiveautomation.com/t/power-table-configureeditor-inside-template-repeater/22203/4 "2019-01-30T17:46:53Z")

</div>

Figured it out finally. Not sure if another setting in my Power Table is causing an issue when used in a Template repeater, but this worked for me. In case anyone else has the same issue:

#### Doesn't work on a power table in a template repeater

```python
#configureEditor
        target = system.tag.read('[Client]Config/select_agitation').value
	ds = system.dataset.toPyDataSet(target)
	options = [(row["idSelect"], row["select_text"]) for row in ds]
	if colName == "Type":
		return {"options":options}

```

#### Works on a power table in a template repeater

```python
		root = self
		from javax.swing import JComboBox, DefaultCellEditor, DefaultComboBoxModel
		
		class CustomCellEditor(DefaultCellEditor):
			def getTableCellEditorComponent(self, table, value, isSelected, row, column):
				comp = DefaultCellEditor.getTableCellEditorComponent(self, table, value, isSelected, row, column)
				data = []
				# get the available options for agitation type column from client tag. 
				target = system.tag.read('[Client]Config/select_agitation').value
				pyData = system.dataset.toPyDataSet(target)
				for row in pyData:
					# append second column (select_text)
					data.append(row[1])
				comp.setModel(DefaultComboBoxModel(data))
				return comp
		return {'editor': CustomCellEditor(JComboBox())}

```

> [@Force configure cell update in power table](http://forum.inductiveautomation.com/t/force-configure-cell-update-in-power-table/16318/4):
>
> Maybe I’m misunderstanding the problem but it seems like you could create 2 datasets as custom properties on your root container. Whenever the user changes the items in the popup, you just refresh the datasets. Then in you configureEditor event, you could read the values in the appropriate dataset and return those items as options.

---

_[View the full topic](https://forum.inductiveautomation.com/t/power-table-configureeditor-inside-template-repeater/22203)._
