Well, you can hide both of the acknowledge buttons on the alert summary table by setting the Ack Buttons Location property to Hidden. You can then add your own Acknowledge button (using the regular Ignition button):
Drag a button onto the window
Set the actionPerformed event (right click on button and select Event Handlers, then actionPerformed under action on the left and lastly the script editor tab) to the following code:table = event.source.parent.getComponent('Alert Summary')
data = table.alerts
row = table.selectedRow
if row != -1:
alertSys = data.getValueAt(row, "System")
alertPath = data.getValueAt(row, "Path")
alertState = data.getValueAt(row, "State Name")
system.alert.acknowledgeAlert(alertSys, alertPath, alertState)We expose the alerts that are shown on the alert summary table to a property called Alerts. We also expose the Selected Row as a property. When you select the first row, for example, the selected row property will be a value of 0 which is the index into the alerts dataset. You can then go inside of the dataset and grab the system, path, and state name which is needed for the system.alert.acknowledgeAlert function. Let us know if you have any other questions.
Can we disable alarm acknowledge button on selecting(ack) the desired row from alarm status table
and make it enable if there are any other alarms in the table respectively.