# How to create an input filter for a status table

**URL:** <https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 26, 2023, 11:00am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517 "2023-06-26T11:00:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 26, 2023, 11:00am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/1 "2023-06-26T11:00:42Z")

</div>

hello to all,

I currently have an input that takes the Source Filter to get a filtering from the status table, but I want the input to take the filtering from the Label and not from the source filter.

is there any function or internal property where I can get the filtering from that table using the Label of the alarm/status?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fbf54b00db8d3efd895103363b073b74c01520f5.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/c/dc01786a494782587b1d37b5530a1131fde436e0.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 26, 2023, 11:24am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/2 "2023-06-26T11:24:04Z")

</div>

[https://docs.inductiveautomation.com/pages/viewpage.action?pageId=72418681#VisionAlarmStatusTable-filterAlarm](https://docs.inductiveautomation.com/pages/viewpage.action?pageId=72418681#VisionAlarmStatusTable-filterAlarm)

should be doable in the extension function

---

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 29, 2023, 9:21am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/3 "2023-06-29T09:21:41Z")

</div>

I was referring to an input where if I type for example "production" it searches and displays the labels that contain the word production.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 29, 2023, 9:47am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/4 "2023-06-29T09:47:34Z")

</div>

yes you can use inputs in the filterAlarm

```auto
def filterAlarm(self, alarmEvent):
	text = self.parent.getComponent('Text Field').text
	if text in alarmEvent.label:
		return True
	return False

```

---

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 29, 2023, 3:17pm UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/5 "2023-06-29T15:17:13Z")

</div>

it worked! thank you very much

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 29, 2023, 3:45pm UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/6 "2023-06-29T15:45:23Z")

</div>

```python
return text in alarmEvent.label

```

I'd probably use a button to assign the input's text to a custom prop, then use the prop in the filter.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 30, 2023, 6:42am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/7 "2023-06-30T06:42:32Z")

</div>

there seems to be a refresh rate on the filter, so its not super response, no need for a button imho

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 30, 2023, 6:46am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/8 "2023-06-30T06:46:48Z")

</div>

It's just about making the interaction clear for the user.  
If there's a pretty button labeled 'apply filter' next to an input field, there's no possible doubt about the course of action required for filtering the table

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 30, 2023, 6:52am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/9 "2023-06-30T06:52:37Z")

</div>

ahh like that, eh a label is fine too, like he did in his screenshot. placeholder would work too  
might want to make it clear if it only filters on the label though, unless if you plan on checking for the text in all properties, which makes it more of a search bar

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 30, 2023, 6:59am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/10 "2023-06-30T06:59:41Z")

</div>

It tells you it's a filter, but it doesn't tell you how to apply it. Do you just type text ? Do you have to press enter ? When will it be applied ?

Note that I'm saying this but I do use real-time filtering in some applications...

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 30, 2023, 7:08am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/11 "2023-06-30T07:08:07Z")

</div>

yeah i understand 😛 But since it doesnt look like you really have control when it applies (it seems to be bound to a refresh rate). Having a button seems weird too, because it wont be the button action that triggers the refresh

---

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 30, 2023, 7:19am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/12 "2023-06-30T07:19:55Z")

</div>

I am using this property to make what I am typing in the input take effect

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/547e872ae8a2f7a1bdb18e558fdaf68847d65dfe.png)

regards.

---

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 30, 2023, 7:55am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/13 "2023-06-30T07:55:07Z")

</div>

one last question, is this only for the Alarm status table? will it work for the Alarm Journal too?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 30, 2023, 7:59am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/14 "2023-06-30T07:59:17Z")

</div>

yes (though the journal has its own search filter too i think)

---

<div class="post-metadata">

**Author:** ![Miguel\_Cimildoro](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Miguel\_Cimildoro](https://forum.inductiveautomation.com/u/Miguel_Cimildoro)\
**Post date:** [June 30, 2023, 8:09am UTC](https://forum.inductiveautomation.com/t/how-to-create-an-input-filter-for-a-status-table/75517/15 "2023-06-30T08:09:47Z")

</div>

Yes, it does, but it seems strange to me that it does not serve the same function, I will dig a little in the documentation to see what I get.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1dcfee95416b1bb2a743841fb1f92ba555c43844.png)

thanks again
