# Acknowledge button for touchscreen

**URL:** <https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572>\
**Category:** Ignition\
**Created:** [October 5, 2015, 12:04pm UTC](https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572 "2015-10-05T12:04:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hensoa](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hensoa](https://forum.inductiveautomation.com/u/hensoa)\
**Post date:** [October 5, 2015, 12:04pm UTC](https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572/1 "2015-10-05T12:04:12Z")

</div>

I want to use the Alarm status Table object in a touchscreen project however the acknowledge button is far too small. I am having difficulty getting a script on a separate larger button for this purpose to work. I have looked at the system.alarm.acknowledge method but am having difficulty getting the selected alarm EventId to pass to the button script. Can you help please . I am using version 7.6

Thanks

Alan

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [October 5, 2015, 3:27pm UTC](https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572/2 "2015-10-05T15:27:31Z")

</div>

Try this to change the size of the button.

[code]from java.awt import Dimension

alarmStatus = event.source.parent.getComponent(‘Alarm Status Table’)  
ackButton = alarmStatus.getComponents()[0].getComponents()[1].getComponents()[0].getComponents()[0]

dim = Dimension(200,50)  
ackButton.setSize(dim)  
ackButton.setPreferredSize(dim)[/code]

---

<div class="post-metadata">

**Author:** ![hensoa](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hensoa](https://forum.inductiveautomation.com/u/hensoa)\
**Post date:** [October 6, 2015, 8:58am UTC](https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572/3 "2015-10-06T08:58:37Z")

</div>

Figured this out for myself eventually.

Created new button and hid button on the Alarm Status Table. Set Alarm Status Table to only allow one row selection.

Script on button

results = even.source.parent.getComponent(‘Alarm Status Table’).selectedAlarms  
uuid = [str(results.getValueAt(0,‘EventId’))]  
system.alarm.acknowledge(uuid, “none”)

enabled binding on the button  
if ({Root Container.Alarms.Low\_Pri\_Alarms.Alarm Status Table.selectedAlarms) = none,0,1) to prevent erro when button pushed when no alarm is selected

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [October 6, 2015, 2:04pm UTC](https://forum.inductiveautomation.com/t/acknowledge-button-for-touchscreen/10572/4 "2015-10-06T14:04:14Z")

</div>

Did you try what jpark suggested?
