# Deselect in Alarm Status using script

**URL:** <https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [February 24, 2025, 11:54am UTC](https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773 "2025-02-24T11:54:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayR](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JayR](https://forum.inductiveautomation.com/u/JayR)\
**Post date:** [February 24, 2025, 11:54am UTC](https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773/1 "2025-02-24T11:54:26Z")

</div>

Hi everyone,

Does anyone know if there's a way to programmatically deselect all rows in the Alarm Status Table via scripting?

I've tried setting `active.data` to `None` and also to an empty list, but neither method worked.

Any guidance or suggestions would be greatly appreciated!

Thanks!

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

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 24, 2025, 12:41pm UTC](https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773/2 "2025-02-24T12:41:39Z")

</div>

Set the `props.selection.mode` to `none`. That will tell the browser, which will deselect everything. Use a property change event script on `props.selection.data` to detect when the list is cleared, and set the selection mode back to what it was.

(Check that something is selected before setting the mode to `none`.)

---

<div class="post-metadata">

**Author:** ![JayR](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JayR](https://forum.inductiveautomation.com/u/JayR)\
**Post date:** [February 24, 2025, 1:10pm UTC](https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773/3 "2025-02-24T13:10:28Z")

</div>

Hi pturmel,  
Thank you so much! This worked perfectly—I appreciate your clear explanation and helpful suggestion 🙂 🙌

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 24, 2025, 1:27pm UTC](https://forum.inductiveautomation.com/t/deselect-in-alarm-status-using-script/102773/4 "2025-02-24T13:27:15Z")

</div>

Variations of this technique apply to any of the Perspective components that allow row selection, fwiw.
