# Alarm status table in ignition perspective

**URL:** <https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 8, 2024, 7:17am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081 "2024-05-08T07:17:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinodhini\_N](https://avatars.discourse-cdn.com/v4/letter/v/65b543/32.png) [@Vinodhini\_N](https://forum.inductiveautomation.com/u/Vinodhini_N)\
**Post date:** [May 8, 2024, 7:17am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/1 "2024-05-08T07:17:53Z")

</div>

Hi, I have a doubt in alarm status table. I want to filter the top 5 alarms from alarm status table and display in the table component . If the new alarm comes the last one should go and new one should add. Based on timestamp the alarm should take the recent 5 alarms.

---

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [May 8, 2024, 7:54am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/2 "2024-05-08T07:54:00Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0fe4a0a86ded2c79840ad2d4c38b1e295a5055c6.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a82214685ba957cb8643ac063bc174b4853426cd.png)

Inside the properties of the Alarm status table in the options section, in initial option we set 5 so that only 5 alarms are shown. To filter by time, we go to columns/active and select active time in sort: descending and order with number 0. Finally, in pager, I set it to hide so that the option would not be displayed below the table, and this is the final result:

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

---

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [May 8, 2024, 8:01am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/3 "2024-05-08T08:01:53Z")

</div>

This is how it looks inside the browser:

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

You can modify the properties of the table to customize it to your liking!

---

<div class="post-metadata">

**Author:** ![Vinodhini\_N](https://avatars.discourse-cdn.com/v4/letter/v/65b543/32.png) [@Vinodhini\_N](https://forum.inductiveautomation.com/u/Vinodhini_N)\
**Post date:** [May 8, 2024, 8:57am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/4 "2024-05-08T08:57:01Z")

</div>

Thank you. I don't want to adjust  
in status table, I just want to filter and visible in pop up view.

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [May 8, 2024, 9:13am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/5 "2024-05-08T09:13:51Z")

</div>

This function return list of alarm events and then you can display top 5 alarms.

> **[system.alarm.queryStatus | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-alarm/system-alarm-queryStatus#description)**
>
> Queries the current state of alarms. The result is a list of alarm events, which can be queried for individual properties.

---

<div class="post-metadata">

**Author:** ![Vinodhini\_N](https://avatars.discourse-cdn.com/v4/letter/v/65b543/32.png) [@Vinodhini\_N](https://forum.inductiveautomation.com/u/Vinodhini_N)\
**Post date:** [May 9, 2024, 5:39am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/6 "2024-05-09T05:39:34Z")

</div>

Can u Please help me. I want to filter the top 5 alarms from alarm status table and view in the table component. In my alarm status table have all active alarms. But in my table component only the ActiveUnacked alarms should have.

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [May 9, 2024, 6:29am UTC](https://forum.inductiveautomation.com/t/alarm-status-table-in-ignition-perspective/90081/7 "2024-05-09T06:29:13Z")

</div>

Paste this binding to the props.data property of your Table component  
While it might not be the complete code, it serves as a guide to steer you in the right direction.

> **Binding**
>
> ```python
> {
> "type": "expr",
> "config": {
> "expression": "now(60000)"
> },
> "transforms": [
> {
> "code": "\tstate \u003d [\"ActiveUnacked\"]\n\talarms \u003d system.alarm.queryStatus(state \u003d state)\n\talarm_pyDS \u003d system.dataset.toPyDataSet(alarms.getDataset())\n\treturn alarm_pyDS[:5]",
> "type": "script"
> }
> ]
> }
> 
> ```
