# Alarm Status Table - Dynamic filtering

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-table-dynamic-filtering/70391>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 27, 2023, 9:12pm UTC](https://forum.inductiveautomation.com/t/alarm-status-table-dynamic-filtering/70391 "2023-02-27T21:12:48Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [February 28, 2023, 9:59pm UTC](https://forum.inductiveautomation.com/t/alarm-status-table-dynamic-filtering/70391/10 "2023-02-28T21:59:36Z")

</div>

> [@Brodie\_Pascal](#):
>
> Where exactly are you putting this

My apologies; I copied that conversion script from a post I made [here](https://forum.inductiveautomation.com/t/individial-alarm-acknowledge-button/70317/6) without putting it into context. Using a [parameterized popup window](https://docs.inductiveautomation.com/display/DOC81/Parameterized+Popup+Windows), I imagine that this would need to be adapted for the alarm status table's filterAlarm extension function. The script would look like this:

```auto
#def filterAlarm(self, alarmEvent):
	tagPath = self.parent.yourCustomProp #custom prop value here
	def getSourcePath(tagPath):
		sourcePath = tagPath.replace('[', 'prov:').replace(']', ':/tag:').replace('/Alarms/', ':/alm:', 1)
		return sourcePath
	if getSourcePath(tagPath) in str(alarmEvent.source):
		return True
	else:
		return False

```

...or perhaps even simpler:

```auto
#def filterAlarm(self, alarmEvent):
	tagPath = self.parent.yourCustomProperty #custom prop value here
	sourcePath = tagPath.replace('[', 'prov:').replace(']', ':/tag:').replace('/Alarms/', ':/alm:', 1)
	if sourcePath in str(alarmEvent.source):
		return True
	else:
		return False

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/alarm-status-table-dynamic-filtering/70391)._
