# Perspective tag event popup window

**URL:** <https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607>\
**Category:** Ignition\
**Created:** [August 20, 2019, 6:57pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607 "2019-08-20T18:57:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgiles](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bgiles](https://forum.inductiveautomation.com/u/bgiles)\
**Post date:** [August 20, 2019, 6:57pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607/1 "2019-08-20T18:57:49Z")

</div>

I am converting a vision project to perspective and having trouble figuring out how to make something work.

I had a client event tag change script that triggered a popup window to open in the client. The tag is a query tag linked back to a primary key in a mySQL database. When a new entry goes into the database, the tag value changes and fires the client event script to open a popup window. The popup was used as an alert to let the shop floor operator know they had received new information. Is there a good way to replicate this in perspective?

---

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [August 21, 2019, 11:57am UTC](https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607/2 "2019-08-21T11:57:21Z")

</div>

Since tags are just in the gateway, you can’t have a tag change event trigger a popup in Perspective. However, you could bind a property in your view to that tag and then set up a change script on that property to trigger the popup.

---

<div class="post-metadata">

**Author:** ![bgiles](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bgiles](https://forum.inductiveautomation.com/u/bgiles)\
**Post date:** [August 22, 2019, 12:21pm UTC](https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607/3 "2019-08-22T12:21:44Z")

</div>

Thank you for the idea, that worked great and solved my issue!

---

<div class="post-metadata">

**Author:** ![Lionel\_Maree](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@Lionel\_Maree](https://forum.inductiveautomation.com/u/Lionel_Maree)\
**Post date:** [January 19, 2023, 11:58am UTC](https://forum.inductiveautomation.com/t/perspective-tag-event-popup-window/27607/4 "2023-01-19T11:58:03Z")

</div>

Hi, can you show a sample script of how it is done. Thanks
