Hey,
In this post it is described that there is a clearSelectedAlarms() function for the Vision Alarm Status Table: How to remove the selection from the Alarm Status Table - Ignition - Inductive Automation Forum
I was wondering if there is a similar function for the perspective Alarm Status Table, since I was not able to remove selected alarms by a script that just assigns an empty array to selected.active.data
.
The same question was ask in the last post on this topic:: Perspective Alarm Status Table Selecting/Deselecting Alarms via Script - Ignition - Inductive Automation Forum
Kind regards
pturmel
January 20, 2025, 12:49pm
2
There is no supported way to do this. Selection is one-way from browser to gateway.
Thank you for your quick answer!
This is unfortunate. I have an open point that it is possible to press the acknowledge button after the page has been switched. For a short time the user is able to acknowledge alarms from the previous page without seeing it.
I think the reason is that the clearance is done within the component, but it takes a few seconds until selected alarms from the previous page are unselected.
My idea was to clear faster by creating an change script on the activePage property.
A hack you could try would be to set the selection mode to "none", then set it back after a delay.
A similar trick works for the regular table component:
The trick is to set enableRowSelection to False, and have a change script on selectedRow looking for None, and then changing enableRowSelection back to True. The code must not set enableRowSelection to False when selectedRow is already None.
Basically, row selection can only be performed reliably by the client browser. When you disable row selection, that state gets sent to the browser, and it clears the selection. When you see that change back in the gateway, you can re-enable row selection…
1 Like
Thanks you!
I came up with a similar idea (disable ack-button temporarily), but I don`t really like this solution. Still, it works