# Adding property on alarm configuration

**URL:** <https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129>\
**Category:** Module Development\
**Created:** [August 23, 2013, 4:54am UTC](https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129 "2013-08-23T04:54:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nclemeur](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nclemeur](https://forum.inductiveautomation.com/u/nclemeur)\
**Post date:** [August 23, 2013, 4:54am UTC](https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129/1 "2013-08-23T04:54:30Z")

</div>

Hello,

I am trying to add an AlarmProperty on the alarm configuration. I managed to register this property in the gateway, using

> [@](#):
>
> GatewayContext.getAlarmManager().registerExtendedConfigProperties(...)

This property is a simple implementation of the AlarmPropery interface and the value of the property is another class that I defined.

Unfortunatelly, when I look at the alarm in the designer, it throws some error:

```auto
Editor not registered for property type 'class myclass'
```

Is there a way to register a custom editor for a custom alarm property? The only thing I could find was Designer.addPropertyEditor, but I don't this is the right API. I look in the TagEditor api, but there is nothing there that seems to do the job...

Any chance to add custom editor API for alarm properties?

Cheers

Nicolas

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [September 4, 2013, 5:22pm UTC](https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129/2 "2013-09-04T17:22:56Z")

</div>

Hi,

Support for a custom editor could be added later. For now, you’ll have to keep your custom properties to basic data types, like String, Boolean, Double, or an enum.

Regards,

---

<div class="post-metadata">

**Author:** ![nclemeur](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nclemeur](https://forum.inductiveautomation.com/u/nclemeur)\
**Post date:** [September 16, 2013, 5:30am UTC](https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129/3 "2013-09-16T05:30:55Z")

</div>

I have been trying hard with simple properties, but I am facing two problems:

- how to have a the value of a String property limited to a list of values (Can’t use an enum as the list is dynamic) ?
- how to have a property which values depends on other properties to update its value when the dependent values changes?

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [September 16, 2013, 5:08pm UTC](https://forum.inductiveautomation.com/t/adding-property-on-alarm-configuration/7129/4 "2013-09-16T17:08:15Z")

</div>

Hi,

Yes, the first will be a bit difficult. I’m not sure if you really have many options to enforce certain values, unfortunately.

As for the second point, though, that should just be as easy as binding the associated data to an expression. Maybe if you give me a more detailed example of what you want to do I can offer some suggestions. What is the bound property changing on? What are the possible result values?

Regards,
