# FilterAlarm on alarm status table optimization

**URL:** <https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697>\
**Category:** Ignition\
**Created:** [January 23, 2018, 5:18pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697 "2018-01-23T17:18:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 23, 2018, 5:18pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697/1 "2018-01-23T17:18:07Z")

</div>

I’ve been working on a filterAlarm script for an alarm table that apparently has a ton of alarms. I put a pretty simple script in there, an if to check if it should filter, then inside that an if to check the alarmEvent object and make a quick comparison… but unleashing that crashes my designer. It is just about as simple as I can make it. Am I doing something wrong here?

Also, is there a way to just shut down whatever the designer is doing so I can stop it, without force closing it and possibly losing work?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [January 23, 2018, 6:28pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697/2 "2018-01-23T18:28:37Z")

</div>

Are you getting anything in the Java console when it crashes? (I assume because of the crash you can’t see the designer’s console…)

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 23, 2018, 6:43pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697/3 "2018-01-23T18:43:07Z")

</div>

Unfortunately no, I’m not able to access the console at all. The designer window just seizes up and eventually I need to force it closed.

Though I did figure this out, I was able to move some of the logic outside so luckily this is solved for now.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 23, 2018, 6:50pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697/4 "2018-01-23T18:50:09Z")

</div>

> [@mrogers](#):
>
> I'm not able to access the console at all

I think Kathy means the Java console, not the consoles within the designer:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0f0a4303c51afe6495592a2b49a76f2e77b11add.png)

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [January 23, 2018, 7:05pm UTC](https://forum.inductiveautomation.com/t/filteralarm-on-alarm-status-table-optimization/16697/5 "2018-01-23T19:05:01Z")

</div>

Oh, that makes more sense after a second read. That’s interesting, I didn’t know that was an option there.
