# Add Notes to Alarm in Client Window

**URL:** <https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 14, 2022, 12:17pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466 "2022-04-14T12:17:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 14, 2022, 12:17pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/1 "2022-04-14T12:17:15Z")

</div>

Good Morning Everyone,  
I have alarm setup on a tag, There is note field in there. Let’s say that this alarm is for sensor and note is troubleshooting steps. Initial note is to reconnect sensor but over time operator realizes that sensor is getting dirty and he want to add that to Alarm note, So when Alarm occurs next time it will show 2 statements in there, one initial statement and one added by operator. I am pretty sure It’s doable. I am not sure though how to do it.  
Share your thoughts.

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

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 14, 2022, 5:21pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/2 "2022-04-14T17:21:38Z")

</div>

That note is for the alarm **configuration** not an alarm event. The Acknowledge notes is a more appropriate place for this.

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 14, 2022, 5:34pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/3 "2022-04-14T17:34:11Z")

</div>

Yes but if operator adds anything in Acknowledge notes, I will not appear in Same alarm occurs. Whole purpose of editing note is so that new troubleshooting steps can be added everyday for each alarm by the person solving them.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 14, 2022, 5:38pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/4 "2022-04-14T17:38:01Z")

</div>

If you insist on doing this you will need to use [system.tag.getConfiguration](https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration) in conjunction with [system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure) and programmatically append your comments. Again, this is not the intended use, i don’t know what the limit is on the field and its messy.

Edit:  
I may be wrong in my assumptions, but it sure seems like a lot of hoops to jump through to implement.

From the documentation:  
A place for any free-form documentation about the alarm that can be displayed to users.

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 22, 2022, 3:57pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/5 "2022-04-22T15:57:26Z")

</div>

Hello @josborn , I have another idea but before I execute that I need to know one small thing. in Alarm Status table, there is a property : selected Alarm,It’s a dataset. I am trying to add Notes as extra column but I am not able to,Can you try and let me know if you are able to do so.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/1/e1a30cae6d378d52b5d621961affb1874e22136b.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/9/89adbb1974fdea2bdc13ae9141738e586c0dacd8.png)

Let me know,

Thanks

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 22, 2022, 4:54pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/6 "2022-04-22T16:54:40Z")

</div>

If you want to add the Notes property to the alarm status table just right click the table header and check the box for Notes.

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 22, 2022, 5:56pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/7 "2022-04-22T17:56:21Z")

</div>

If you see in in picture, Its already there, I want to add it into dataset of selected alarm property.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 22, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/8 "2022-04-22T18:11:56Z")

</div>

You can’t. You can add your own custom property and use `system.dataset.addColumn` in conjunction with `system.tag.getConfiguration` to get the notes.

Also, you have not shown your status table at all let alone the notes column.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 22, 2022, 7:42pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/9 "2022-04-22T19:42:59Z")

</div>

This took me longer to figure out than i would like to admit. If you create a custom property “newSelect” and put this code on a property change event of your alarm status table it will include the notes in you custom property. This only works for single selection, but you could adapt it for multi select.

```auto
alrms = system.dataset.toPyDataSet(event.source.selectedAlarms)
if len(alrms) > 0:
	source = alrms.getValueAt(0,1).split(':')
	tag = source[3]
	try:
		Notes = system.tag.getConfiguration(tag)[0]['alarms'][0]['notes']
		event.source.newSelect = system.dataset.addColumn(alrms, 6, [Notes], 'Notes', str)
	except:
		event.source.newSelect = system.dataset.addColumn(alrms, 6, [""], 'Notes', str)

```

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 22, 2022, 7:54pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/10 "2022-04-22T19:54:53Z")

</div>

Wow. Thank you so much for your efforts. I will try this respond to you. 🙂 .

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 22, 2022, 10:38pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/11 "2022-04-22T22:38:11Z")

</div>

No prob, here’s a small improvement:

```auto
alrms = system.dataset.toPyDataSet(event.source.selectedAlarms)
if len(alrms) > 0:
	source = alrms.getValueAt(0,1).split(':')
	tag = source[3]
	try:
		Notes = system.tag.getConfiguration(tag)[0]['alarms'][0]['notes']
	except:
		Notes = ""
	event.source.newSelect = system.dataset.addColumn(alrms, 6, [Notes], 'Notes', str)
else:
	event.source.newSelect = system.dataset.addColumn(alrms, 6, [], 'Notes', str)

```

---

<div class="post-metadata">

**Author:** ![NewBieNew](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@NewBieNew](https://forum.inductiveautomation.com/u/NewBieNew)\
**Post date:** [December 21, 2023, 9:31pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/12 "2023-12-21T21:31:42Z")

</div>

I am trying to do this in perspective but don't know where to add the custom property and no property change event could be found here. Please help. I am using v 8.1.31

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [December 21, 2023, 11:01pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/13 "2023-12-21T23:01:43Z")

</div>

This question isn't tagged specifically but based on the OP's screenshots it is for vision, i am not sure how you would accomplish this in perspective. Maybe if you start another topic with the appropriate tags someone here can help you.

---

<div class="post-metadata">

**Author:** ![victor.meza](https://avatars.discourse-cdn.com/v4/letter/v/f08c70/32.png) [@victor.meza](https://forum.inductiveautomation.com/u/victor.meza)\
**Post date:** [April 3, 2024, 2:32pm UTC](https://forum.inductiveautomation.com/t/add-notes-to-alarm-in-client-window/58466/14 "2024-04-03T14:32:47Z")

</div>

Hi josborn, how do you add the notes?? I mean, did you create a textbox or something where you can type the notes??  
The common way is through Acknowledge Notes, but as is mentioned before, you can't add more comments to the same alarm.

And second thing, is this script able to do it for multiple selection??

I hope you understand my question.  
Kind regards.
