# Refresh Object from Popup Window

**URL:** <https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 18, 2024, 7:58am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441 "2024-10-18T07:58:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Szeman\_Mate](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Szeman\_Mate](https://forum.inductiveautomation.com/u/Szeman_Mate)\
**Post date:** [October 18, 2024, 7:58am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441/1 "2024-10-18T07:58:22Z")

</div>

my question is: when pressing the 'change' button in the opened pupop window, what command should i use in the attached script to update the view elements behind it?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/4162b3b6c496fdeeb2a76ddff06b0c249a754368.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 18, 2024, 8:06am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441/2 "2024-10-18T08:06:21Z")

</div>

Use a message handler.

- Right-click on the button | Configure Events | onClick | + | Script.
- Add [system.perspective.sendMessage | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-perspective/system-perspective-sendMessage), giving it a unique name in the messageType field. Be careful to set the scope properly. It will default to "page" which should work.
- On the component in the view to be updated, right-click on the component | Configure Scripts | + Handler, set the Message Type to the same name you used in sendMessage and write the script to do what you want it to do.

---

<div class="post-metadata">

**Author:** ![Szeman\_Mate](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Szeman\_Mate](https://forum.inductiveautomation.com/u/Szeman_Mate)\
**Post date:** [March 7, 2025, 7:41am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441/3 "2025-03-07T07:41:23Z")

</div>

Thank you !

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 7, 2025, 9:17am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441/4 "2025-03-07T09:17:43Z")

</div>

You're welcome. Don't forget to click the "Solution" button to mark it solved. Thanks.

---

<div class="post-metadata">

**Author:** ![Szeman\_Mate](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Szeman\_Mate](https://forum.inductiveautomation.com/u/Szeman_Mate)\
**Post date:** [March 7, 2025, 9:30am UTC](https://forum.inductiveautomation.com/t/refresh-object-from-popup-window/97441/5 "2025-03-07T09:30:26Z")

</div>

Done 😉

If you can check my other issue 😃

> [@The same xTrace marker on multiple time series charts](https://forum.inductiveautomation.com/t/the-same-xtrace-marker-on-multiple-time-series-charts/103371):
>
> Hi Can someone give me a solution so that if I move the mouse over the Time Series Chart above, it will appear at the same point on the Chart below? I would like to see the results on independent charts at the same time and if I put everything on the same chart the lines are not clearly visible. Thanks for any help!
