# Programmatically-applied PowerTable Filters

**URL:** <https://forum.inductiveautomation.com/t/programmatically-applied-powertable-filters/15495>\
**Category:** Ignition\
**Tags:** sdk, scripting, ignition79\
**Created:** [September 28, 2017, 5:17pm UTC](https://forum.inductiveautomation.com/t/programmatically-applied-powertable-filters/15495 "2017-09-28T17:17:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 28, 2017, 5:35pm UTC](https://forum.inductiveautomation.com/t/programmatically-applied-powertable-filters/15495/2 "2017-09-28T17:35:12Z")

</div>

```auto
			model = self.getTable().getModel().getActualModel()
			from com.jidesoft.grid import SingleValueFilter
			class newFilter(SingleValueFilter):
				def isValueFiltered(self, value):
					return True if value == target.data.getValueAt(row, 4) else False
			model.addFilter(3, newFilter())
			model.setFiltersApplied(True)
			model.refresh()

```

I’ve used this code before to successfully apply a filter (shows the filter icon in the table header correctly), and it also allows it to be removed by selecting ‘All’ from the dropdown; I suspect that the `EqualFilter` you’re using doesn’t do everything necessary to interact with the table.

---

_[View the full topic](https://forum.inductiveautomation.com/t/programmatically-applied-powertable-filters/15495)._
