# Custom property change using filterAlarm function

**URL:** <https://forum.inductiveautomation.com/t/custom-property-change-using-filteralarm-function/15762>\
**Category:** Ignition\
**Created:** [October 24, 2017, 8:26pm UTC](https://forum.inductiveautomation.com/t/custom-property-change-using-filteralarm-function/15762 "2017-10-24T20:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenny](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@kenny](https://forum.inductiveautomation.com/u/kenny)\
**Post date:** [October 24, 2017, 8:26pm UTC](https://forum.inductiveautomation.com/t/custom-property-change-using-filteralarm-function/15762/1 "2017-10-24T20:26:15Z")

</div>

Hi there,

I’m trying to change the state of a custom property (activeAlarm) attached to an alarm status table. The filter section of the code works, but I’m not sure of the right scripting commands to tell the system to switch the Boolean state of my custom property attached to the table.

Here is the code I am using:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/58a34e854f6b345f433ade68c4932b79eb8788de.jpg)

I’m just beginning with Ignition and Python, so please forgive such a newbie question.

Thanks!

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [October 24, 2017, 8:43pm UTC](https://forum.inductiveautomation.com/t/custom-property-change-using-filteralarm-function/15762/2 "2017-10-24T20:43:02Z")

</div>

In extension functions there is no event object, so instead of using

``event.source.activeAlarm = 1

use

``self.activeAlarm = 1

---

<div class="post-metadata">

**Author:** ![kenny](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@kenny](https://forum.inductiveautomation.com/u/kenny)\
**Post date:** [October 24, 2017, 9:15pm UTC](https://forum.inductiveautomation.com/t/custom-property-change-using-filteralarm-function/15762/3 "2017-10-24T21:15:34Z")

</div>

Excellent! I had to also move the “self.activeAlarm” command to above the “return = True” line to get it to work - but that fixed it!

Thanks so much, appreciate the help.
