# Open window

**URL:** <https://forum.inductiveautomation.com/t/open-window/3182>\
**Category:** Ignition\
**Created:** [August 15, 2011, 10:00pm UTC](https://forum.inductiveautomation.com/t/open-window/3182 "2011-08-15T22:00:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [August 15, 2011, 10:00pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/1 "2011-08-15T22:00:24Z")

</div>

Hello  
good afternoon

I have a question.

how do I open a window when an alarm is activated?

regards

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 16, 2011, 12:24pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/2 "2011-08-16T12:24:44Z")

</div>

This example uses any unacknowledged alarm…

Create DB Tag to count number of unacknowledged alarms:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/b64950d74b78c93663edc9ae9d2f458f650f7c45.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76ae77e491445b3046dfc7c854b4e7742e593e27.png)  

Client script to open window if more than zero alarms exist:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/1fca6c4e5c336d159990e38eb0a71767999bb9d3.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 16, 2011, 12:33pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/3 "2011-08-16T12:33:54Z")

</div>

If you are looking for just just one alarm, you can use the AlertActive property of the SQLTag you are using in a Client Change Tag script:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/21fbceabb077dd57ad820624d661ef93b36d7cf7.png)

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [August 16, 2011, 3:58pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/4 "2011-08-16T15:58:25Z")

</div>

Good morning Jordan

I did as you suggested but I did not work I’ll be doing something wrong.

is there another way to do it.

what I want is that when an alarm to open a screen, with each alarm is a different screen.

can you help me with this.

regards

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/71baac5ec1052348752185d4b190dfce65aa3e8c.jpg)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 16, 2011, 5:43pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/5 "2011-08-16T17:43:55Z")

</div>

Is the [1] you have in your script the SQLTag provider name?

Also, Client scripts do not run in the Designer. Be sure the project is saved and run the project as a Client.

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [August 16, 2011, 6:46pm UTC](https://forum.inductiveautomation.com/t/open-window/3182/6 "2011-08-16T18:46:38Z")

</div>

ok thaks
