# Perspective double click alarm acknowledgement

**URL:** <https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 21, 2022, 5:54am UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662 "2022-04-21T05:54:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody\_Miller](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@Cody\_Miller](https://forum.inductiveautomation.com/u/Cody_Miller)\
**Post date:** [April 21, 2022, 5:54am UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/1 "2022-04-21T05:54:35Z")

</div>

I am wanting to add functionality in Perspective that allows me to acknowledge an alarm when double clicked. I have attached a screenshot of how it was done in Vision but have not been able to make it work on Perspective as alarmEvent is not parsed through the script. Is it possible to achieve this functionality in Perspective?

 ![Screen Shot 2022-04-21 at 2.22.27 pm](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/2/e2a392f74b39bcc1b34a3f2fc197532488aaf2f4.jpeg)

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [April 21, 2022, 12:23pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/2 "2022-04-21T12:23:07Z")

</div>

Hi @Cody_Miller,

Your best bet for the moment would be to use the system.alarm.querystatus and make your alarm list by yourself in a table component.  
Then you can use the row double click to get the alarm eventid and execute the acknowledgement.

@paul-griffith Is there any beter way to do this and is there any extra extension functions to the perspective alarm status foreseen in the next releases ?

Regards

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 21, 2022, 7:42pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/3 "2022-04-21T19:42:11Z")

</div>

I don’t see any way to extract the event ID under the cursor, no. I’m not aware of any plans to add extra extension functions/change the existing ones on the power table. It’d be a good ideas post/feature request, though.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [April 25, 2022, 12:35pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/4 "2022-04-25T12:35:50Z")

</div>

@paul-griffith,

Thanks for your feedback.  
I've add this idea to the list

> **[Extra Extension Functions Alarm Status Journal Perpective | Voters |...](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/extra-extension-functions-alarm-status-journal-perpective)**

Regards

---

<div class="post-metadata">

**Author:** ![careyh](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@careyh](https://forum.inductiveautomation.com/u/careyh)\
**Post date:** [December 8, 2023, 7:00pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/5 "2023-12-08T19:00:39Z")

</div>

Has there been any development to extract event ID or other event data from mouse click in the alarm status table?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 8, 2023, 7:07pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/6 "2023-12-08T19:07:23Z")

</div>

No. In Vision, it's absolutely possible to script it. @justinedwards.jle might have a script already handy to do so, I know he's posted a lot of alarm status table stuff.

From your other thread, you might be asking about Perspective, though, in which case it's unrelated to the subject of this thread.

---

<div class="post-metadata">

**Author:** ![careyh](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@careyh](https://forum.inductiveautomation.com/u/careyh)\
**Post date:** [December 8, 2023, 11:21pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/7 "2023-12-08T23:21:52Z")

</div>

Yes, I am asking to have it done in perspective. I can get a custom popup or page navigation to function based with the alarm list, but only when there is one alarm selected in the list. (I dont want to change the list to allow only one selection, that will prevent the use from acking only 1 alarm at a time)

This must be done by the software developers somehow already because if you click on the tag icon in the alarm list, a popup appears that is for that alarm only. It would be helpful if some of that was exposed to us programmers.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 11, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/8 "2023-12-11T14:55:17Z")

</div>

> [@careyh](#):
>
> Has there been any development to extract event ID or other event data from mouse click

It's not difficult. Right click on the alarm status table, and click "configure events":  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/d/6dfae9b41abb05e18cc985dfa7f56548eb665f84.png)

Then, select the onClick mouse event, and you can script it from there using the Alarm Status Table's 'selection' prop.

**Example:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1f9b1c2e4b9de09fd1d84a680889e6326fd917c3.png)

```auto
#def runAction(self, event):
	# Get the active selection data
	selections = self.props.selection.active.data

	# Loop through the data and extract any eventIds
	eventIds = [selection.eventId for selection in selections]

	# Display the eventIds in a label
	self.getSibling("Label").props.text = eventIds

```

**Here is the result:**

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

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 11, 2023, 3:14pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/9 "2023-12-11T15:14:53Z")

</div>

As for the OP:

> [@Cody\_Miller](#):
>
> I am wanting to add functionality in Perspective that allows me to acknowledge an alarm when double clicked

The above script used in conjunction with `system.alarm.acknowledge` on the onDoubleClick event worked in the version of perspective I am using, but it was clunky. Any selected alarms other than the one I was clicking on got acknowledged, but because clicking the row selected and deselected the checkbox, often times the alarm being double clicked wasn't selected when the double click event occurred, so it didn't get acknowledged.

That said, double clicking anywhere else on the table acknowledged the selected alarms just fine, but none of this seems intuitive, so I would not recommend this approach.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2023, 3:28pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/10 "2023-12-11T15:28:43Z")

</div>

The OP was a Vision question. The newcomer should have started a new Perspective topic. Leave the topic tag set to Vision.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2023, 6:14pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/12 "2023-12-11T18:14:47Z")

</div>

Oops. I was trusting @cmallonee's assessment, and the screenshot. /:

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 11, 2023, 6:17pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/13 "2023-12-11T18:17:04Z")

</div>

Whoa - don't bring me into this! 😆

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2023, 6:29pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/14 "2023-12-11T18:29:04Z")

</div>

Hah! _ **You** _ added the first Vision tag to this topic.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 11, 2023, 8:41pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/15 "2023-12-11T20:41:27Z")

</div>

Ah, dang.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 11, 2023, 11:03pm UTC](https://forum.inductiveautomation.com/t/perspective-double-click-alarm-acknowledgement/58662/16 "2023-12-11T23:03:35Z")

</div>

Hilarious! It never occurred to me to look at the revision history, and I didn't look at the picture that closely.
