# Alarms Itempath

**URL:** <https://forum.inductiveautomation.com/t/alarms-itempath/5094>\
**Category:** Ignition\
**Created:** [September 3, 2012, 10:25am UTC](https://forum.inductiveautomation.com/t/alarms-itempath/5094 "2012-09-03T10:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://forum.inductiveautomation.com/u/tamerplc)\
**Post date:** [September 3, 2012, 10:25am UTC](https://forum.inductiveautomation.com/t/alarms-itempath/5094/1 "2012-09-03T10:25:54Z")

</div>

In Navigation bar there is an Alarm counting with below scripting code

`runScript("system.alert.queryAlertStatus(" + 
"activeAndAcked=" + toInt({Root Container.Alarms.activeAndAcked}) + "," +
"activeAndUnacked=" + toInt({Root Container.Alarms.activeAndUnacked}) + "," +
"clearAndAcked=" + toInt({Root Container.Alarms.clearAndAcked}) + "," +
"clearAndUnacked=" + toInt({Root Container.Alarms.clearAndUnacked}) +
").rowCount", 1000)`

i need to filter the alarms from specified FolderA/\*. Means i need to count only alarms which in certain folder not all of alarms in the alarmTable.Please advise

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [September 4, 2012, 3:19pm UTC](https://forum.inductiveautomation.com/t/alarms-itempath/5094/2 "2012-09-04T15:19:21Z")

</div>

Ok here it the expression:`runScript("system.alert.queryAlertStatus(" + 
"activeAndAcked=" + toInt({Root Container.Alarms.activeAndAcked}) + "," +
"activeAndUnacked=" + toInt({Root Container.Alarms.activeAndUnacked}) + "," +
"clearAndAcked=" + toInt({Root Container.Alarms.clearAndAcked}) + "," +
"clearAndUnacked=" + toInt({Root Container.Alarms.clearAndUnacked}) + "," + 
"path='FolderA/*'" +
").rowCount", 1000)`I just added a path to the system.alert.queryAlertStatus. See the [documentation for the function](http://www.inductiveautomation.com/support/usermanuals/ignition/system_alert_queryalertstatus.htm).

---

<div class="post-metadata">

**Author:** ![tamerplc](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tamerplc](https://forum.inductiveautomation.com/u/tamerplc)\
**Post date:** [September 6, 2012, 8:14am UTC](https://forum.inductiveautomation.com/t/alarms-itempath/5094/3 "2012-09-06T08:14:08Z")

</div>

Thanks Travis.  
it is working fine. our project also start now we connected 4 Plant through GPRS & 3G to Ignition . Total TAGS now 461 Tags .Performance is good.  
Thanks for all ignition Team.  
Tamer
