# Display Acknowledgement Notes in Alarm Status Table

**URL:** <https://forum.inductiveautomation.com/t/display-acknowledgement-notes-in-alarm-status-table/67367>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 8, 2022, 12:46am UTC](https://forum.inductiveautomation.com/t/display-acknowledgement-notes-in-alarm-status-table/67367 "2022-12-08T00:46:39Z")\
**Posts on this page:** 3\
**Page:** 1

<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 8, 2022, 12:46am UTC](https://forum.inductiveautomation.com/t/display-acknowledgement-notes-in-alarm-status-table/67367/1 "2022-12-08T00:46:39Z")

</div>

I was experimenting on Vision's Alarm Status Table, and I ran across an interesting result that could be useful to somebody, so I am sharing it here.

When adding an unspecified column to the table, the column model defaults to acknowledgement notes. Here is the code:

```auto
jideTable = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0).getComponent(0).getComponent(0)
from javax.swing.table import TableColumn
tableHeaders= jideTable.getTableHeader()
columnModel = jideTable.getColumnModel()
columnModel.addColumn(TableColumn())
tableColumn = columnModel.getColumn(6)
tableColumn.setHeaderValue("Ack Notes")
tableHeaders.repaint()

```

Here is the result:

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

I assume this is because when sortable is set to false, and all the columns are rendered, acknowledgement notes become column 0:

```auto
jideTable = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0).getComponent(0).getComponent(0)
jideTable.setSortable(False)

```

Result:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/820eb9afc5e552acff2f2623d65ffa8f2968a9ef.png)

---

<div class="post-metadata">

**Author:** ![plo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/plo/32/33875_2.png) [@plo](https://forum.inductiveautomation.com/u/plo)\
**Post date:** [December 19, 2022, 10:35pm UTC](https://forum.inductiveautomation.com/t/display-acknowledgement-notes-in-alarm-status-table/67367/2 "2022-12-19T22:35:55Z")

</div>

Hello justinedwards.jle,

To help display the different columns in the Alarm Status Table, you can right click the table headers and check the boxes to display/reveal the other available columns. The 1st column is the Ack-Notes as you have found.

[https://docs.inductiveautomation.com/display/DOC81/Vision+-+Alarm+Status+Table](https://docs.inductiveautomation.com/display/DOC81/Vision+-+Alarm+Status+Table)

---

<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 19, 2022, 10:52pm UTC](https://forum.inductiveautomation.com/t/display-acknowledgement-notes-in-alarm-status-table/67367/3 "2022-12-19T22:52:16Z")

</div>

> [@plo](#):
>
> you can right click the table headers and check the boxes to display/reveal the other available columns

Thanks, I have actually since figured that out and even noted it here:

> [@Alarm Status table - sort order and ack notes](https://forum.inductiveautomation.com/t/alarm-status-table-sort-order-and-ack-notes/66821/4):
>
> I messed around with this problem again, and I figured out a way to do it that is actually SUPER SIMPLE! First, right click on the header of the table and select the checkbox next to the column "Acked?" [image] Second, click on the header for the Acked column twice to sort descending. Result:

For dynamically controlling which columns are shown or hidden with scripting, I have since learned that any integer from 0 to 22 can be passed into the addColumn method, and the column added will directly correspond to the order of the columns listed in the popup, even if the table has been rearranged.

What I was working on at the time, ~~and still haven't figured out how to do~~ is altering the table model to accept columns that are not on that dropdown list.
