# Click on alarm row open related window

**URL:** <https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054>\
**Category:** Ignition\
**Created:** [November 25, 2018, 6:41am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054 "2018-11-25T06:41:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 25, 2018, 6:41am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/1 "2018-11-25T06:41:11Z")

</div>

hello  
I want when operator click on a alarm row on Alarm status table or Alarm Journal table, the related window of that alarm open.  
I think of creating a associated data that contain the path of a window for each alarm but I don’t know how to get associated data by selecting a row on alarm tables.

Thanks

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 25, 2018, 9:33am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/2 "2018-11-25T09:33:12Z")

</div>

you can read associated data value on an alarm with `alarmEvent.get("associated data name")`

becarefull if using tag event :

> [@Associated Data in tags AlarmActive event](http://forum.inductiveautomation.com/t/associated-data-in-tags-alarmactive-event/14602):
>
> How can I access associated data from my alarm tag ‘Alarm Active’ event script? Currently I have this, but it’s not working: Associated Data defined Script in ‘Alarm Active’ event and the error [image] It seems that alarmEvent.get(“associated data name”) is not working in alarm event…?

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 25, 2018, 10:58am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/3 "2018-11-25T10:58:56Z")

</div>

I put this code in doubleclick event of alarm status table and work perfectly.

> system.nav.openWindow(alarmEvent.get("windowPath"))

The only problem is mouse double click activate event but touch screen double click don't provoke any event at all. it seems touch screen double click doesn't detect by ignition.  
Did any one seems this issue?

---

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [November 28, 2018, 6:08am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/4 "2018-11-28T06:08:22Z")

</div>

For Alarm Status table there is a property called Selected Alarms which is a dataset of EventID,Source,…,priority of selected alarm in the table.

I need associated data of selected alarm. I can’t use onDoubleClicked event because I use touch screen which is not provoke double click event so alarmEvent.Get() is useless to me.  
I need to know how I can retrieve associated data by using EventID or Source of selected alarm?

Thanks

---

<div class="post-metadata">

**Author:** ![yogiekusumahn](https://avatars.discourse-cdn.com/v4/letter/y/d07c76/32.png) [@yogiekusumahn](https://forum.inductiveautomation.com/u/yogiekusumahn)\
**Post date:** [October 19, 2021, 1:23am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/5 "2021-10-19T01:23:16Z")

</div>

I need this feature too, i want to query database based on alarm row clicked (single clicked) by user.  
Of course i can to this using onDoubeClicked event handler, but i need user clicked once, not double clicked.

I do not know how to implement this, since there is no onSingleClicked event handler.

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [December 15, 2021, 10:49am UTC](https://forum.inductiveautomation.com/t/click-on-alarm-row-open-related-window/21054/6 "2021-12-15T10:49:25Z")

</div>

sorry to comment on an old thread, but I had to do a lot of digging and messing about to get this going…

here is the code I run on the propertyChange event of the Alarm Status Table for when a user clicks on an alarm. It writes the associated data of a property called “Alternate Language” to another component.

Change out “Alternate Language” to whatever the name of the associated data you are looking for.

This is Ignition 7.9.16

```auto
from com.inductiveautomation.ignition.common.config import Property, BasicProperty
from java.lang import String

if event.propertyName == '_selectedAlarms':
	alarm = event.newValue[0]
	prop = BasicProperty('Alternate Language', String)
	print alarm.get(prop)
	event.source.parent.getComponent('englishDisplayPathLabel').text = alarm.get(prop)

```
