# Perspective Message Handler Issues

**URL:** <https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 28, 2025, 2:51pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381 "2025-03-28T14:51:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwangrud](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dwangrud](https://forum.inductiveautomation.com/u/dwangrud)\
**Post date:** [March 28, 2025, 2:51pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381/1 "2025-03-28T14:51:53Z")

</div>

Hi guys, I'm working on using a gateway system.util.SendMessage function (I have it in a timer script to test but eventually want to do it on a tag change event) which should link to a session event to open a popup. I don't get any errors on the gateway logs for the sendMessage function, but no popup is happening. I'm not sure about a couple of items. On the session event side do I need to use the payload that comes up when you go to add a new messageHandler script? I figured the gateway script might just be a nice way to activate the script in the message handler. Eventually we will have 3 of these scripts running for 3 identical lines.  
Here's my session event:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/a/1a71f78f29ef0aac50967a8eaf28f1f1dc7b7e0b.png)  
and here's my gateway script:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/optimized/3X/5/d/5d7987b2fefe4e8a9b0d5aa2d5c2d1bc67f97b1c_2_690x26.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:** [March 28, 2025, 3:08pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381/2 "2025-03-28T15:08:16Z")

</div>

> [@dwangrud](#):
>
> eventually want to do it on a tag change event

You should just bind the tag into your UI, typically in a docked view's custom properties, and use a propertyChange event on that property. **Pull** tag information into your UI, don't **push** from the tag to the UI.

---

<div class="post-metadata">

**Author:** ![dwangrud](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dwangrud](https://forum.inductiveautomation.com/u/dwangrud)\
**Post date:** [March 28, 2025, 3:10pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381/3 "2025-03-28T15:10:18Z")

</div>

ah gotcha, I was wondering about that because the popup needs to happen from any screen, but if I bind it into the header/nav as a custom property it will always be present. thanks!

---

<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:** [March 28, 2025, 3:14pm UTC](https://forum.inductiveautomation.com/t/perspective-message-handler-issues/104381/4 "2025-03-28T15:14:02Z")

</div>

You can test with a memory tag, then switch to the real tag later.
