# Popup window after event in DB

**URL:** <https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049>\
**Category:** Ignition\
**Created:** [April 5, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049 "2022-04-05T14:35:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![etlikmilos](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@etlikmilos](https://forum.inductiveautomation.com/u/etlikmilos)\
**Post date:** [April 5, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049/1 "2022-04-05T14:35:10Z")

</div>

Hello all,  
I have an issue with the open popup after the event in DB. So could you tell me how I can do it?  
I have DB in SQL and from another application, I write to DB. In ignition, I read this SQL, and then I need open if will be one parameter true. I don’t have a problem with reading this parameter and writing to a custom variable or on another variable but I have a problem with the open popup I tried after changing the script on the custom variable opening popup but it doesn’t work for me ☹  
Can you help me, please?  
This is my custom variable and my popup and this variable is on this popup.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/0/309bb143c136180a7fd2f5fde5b927f466bf6ffa.png)

and here is test code for popup :

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

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 5, 2022, 2:40pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049/2 "2022-04-05T14:40:14Z")

</div>

Are you testing this in the Designer, or a running session? If you look at the logs on your Gateway, do you see any logging when that change script is executed?

---

<div class="post-metadata">

**Author:** ![etlikmilos](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@etlikmilos](https://forum.inductiveautomation.com/u/etlikmilos)\
**Post date:** [April 5, 2022, 4:54pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049/3 "2022-04-05T16:54:42Z")

</div>

Hello  
So i tested in a running session and in my log i don’t see anything ☹

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 5, 2022, 5:05pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049/4 "2022-04-05T17:05:56Z")

</div>

What does the binding preview show you (bottom left of the binding dialog)? The only reason I would expect no Popup to open (and also no error logging to occur) is if you haven’t saved your changes or if `value` is evaluating as `False` or `None`. So make sure you save and verify a tag exists at the path you supplied for the binding.

---

<div class="post-metadata">

**Author:** ![etlikmilos](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@etlikmilos](https://forum.inductiveautomation.com/u/etlikmilos)\
**Post date:** [April 5, 2022, 5:41pm UTC](https://forum.inductiveautomation.com/t/popup-window-after-event-in-db/58049/5 "2022-04-05T17:41:51Z")

</div>

Yes, the problem was by me because I have a popup window and these custom variable was on this popup I moved these variable to the main window, and now is it everything right. 😃 I wanted open a popup from the window which not exist yet 😮 Thank you for your support 😃
