# PowerTable Extension Function - configure Editor Filter on selected value

**URL:** <https://forum.inductiveautomation.com/t/powertable-extension-function-configure-editor-filter-on-selected-value/29895>\
**Category:** Ignition\
**Created:** [November 12, 2019, 11:23pm UTC](https://forum.inductiveautomation.com/t/powertable-extension-function-configure-editor-filter-on-selected-value/29895 "2019-11-12T23:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil\_B](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@Neil\_B](https://forum.inductiveautomation.com/u/Neil_B)\
**Post date:** [November 12, 2019, 11:23pm UTC](https://forum.inductiveautomation.com/t/powertable-extension-function-configure-editor-filter-on-selected-value/29895/1 "2019-11-12T23:23:52Z")

</div>

I’m trying to use the configureEditor extension function on a power table to create a dropdown list that changes on the selected value.  
Here is my attempt:

```auto
	unComplete = [(0, ' '), (1, 'Approved')]

	if self.selectedRow != -1:
		val = self.data.getValueAt(self.selectedRow, "Status")
		if colName == "Status" and val == "Completed":
			return {'options': unComplete}

```

the column is editable, but the dropdown list does not populate.  
I’m not sure this is even possible in the extension function…

---

<div class="post-metadata">

**Author:** ![Neil\_B](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@Neil\_B](https://forum.inductiveautomation.com/u/Neil_B)\
**Post date:** [November 15, 2019, 11:09pm UTC](https://forum.inductiveautomation.com/t/powertable-extension-function-configure-editor-filter-on-selected-value/29895/2 "2019-11-15T23:09:00Z")

</div>

So basically I’m wondering if you can create a different list depending on the value of the currently selected row.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 15, 2019, 11:21pm UTC](https://forum.inductiveautomation.com/t/powertable-extension-function-configure-editor-filter-on-selected-value/29895/3 "2019-11-15T23:21:58Z")

</div>

Check my post here:

> [@Force configure cell update in power table](http://forum.inductiveautomation.com/t/force-configure-cell-update-in-power-table/16318/7):
>
> The much more efficient solution is to embed a custom editor, which will lookup the datasets dynamically whenever it’s appropriate. I’ve got a very simple example of this below; the project has an editable ‘Options’ dataset, and the available options in column B in the editable table will be dynamic based on the value in column A. The relevant code is here: root = self from javax.swing import JComboBox, DefaultCellEditor, DefaultComboBoxModel class CustomCellEditor(DefaultCellEditor):…
