# \[FEATURE\] Perspective - Alarm Grouping Binding for other components

**URL:** <https://forum.inductiveautomation.com/t/feature-perspective-alarm-grouping-binding-for-other-components/26534>\
**Category:** Ignition Early Access\
**Created:** [July 12, 2019, 9:57pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-alarm-grouping-binding-for-other-components/26534 "2019-07-12T21:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.israelsen](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@j.israelsen](https://forum.inductiveautomation.com/u/j.israelsen)\
**Post date:** [July 12, 2019, 9:57pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-alarm-grouping-binding-for-other-components/26534/1 "2019-07-12T21:57:28Z")

</div>

It would be very useful to be able to bind something like a label component to use a “filterAlarm” extension function. The idea is to be able to do things like the “Alarm Journal” component when using the “filterAlarm” extension function. But in this case to “filterAlarm” down to a single value (e.g. to get alarm counts, or to get the priority of the highest priority alarm) and display that in a label.

For example:

- Have a number of tags be assigned “Group A” to their associated data “Group”.
- Then bind a component (e.g. a label component) to get the alarm count on the associated data “Group” for “Group A”.

Something like this will particularly benefit Perspective as it is well built for summarizing data.

---

<div class="post-metadata">

**Author:** ![j.israelsen](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@j.israelsen](https://forum.inductiveautomation.com/u/j.israelsen)\
**Post date:** [July 12, 2019, 10:25pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-alarm-grouping-binding-for-other-components/26534/2 "2019-07-12T22:25:12Z")

</div>

Posted this under the “Ignition Features and Ideas” page:

[https://inductiveautomation.canny.io/ignition-features-and-ideas/p/perspective-alarm-grouping-binding-for-other-components](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/perspective-alarm-grouping-binding-for-other-components)

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [December 24, 2019, 2:11pm UTC](https://forum.inductiveautomation.com/t/feature-perspective-alarm-grouping-binding-for-other-components/26534/3 "2019-12-24T14:11:38Z")

</div>

You can get the alarm count for an alarm group by doing a script transform on a binding. For example, if you want to update your alarm count every 2 seconds, bind to “now(2000)”. Then put a script transform on it that looks like this:

```auto
	props = [("AlarmGroup", "=", self.params.AlarmGroup)]
	state = ["ActiveUnacked", "ActiveAcked"]
	alarms = system.alarm.queryStatus(all_properties = props, state = state)
	
	return len(alarms)

```

In this example I have a parameter on my view called “AlarmGroup” which contains the Alarm Group.
