# Ways to check if the popup is open

**URL:** <https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 31, 2023, 9:19am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128 "2023-07-31T09:19:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AVG04](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AVG04](https://forum.inductiveautomation.com/u/AVG04)\
**Post date:** [July 31, 2023, 9:19am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128/1 "2023-07-31T09:19:23Z")

</div>

Hi guys, would like to ask for ideas or approach on how to check if the popup is open in another workstation/session. What we need is to make sure that the specific popup can only be open/active in 1 workstation/session.

We initially used memory tags to disable the navigation button when popup is open. The downside is, if we force close the session without closing the popup, the tag will remain latched.

Is there a way to check if the popup is open via session properties?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 31, 2023, 9:31am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128/2 "2023-07-31T09:31:02Z")

</div>

> [@AVG04](#):
>
> The downside is, if we force close the session without closing the popup, the tag will remain latched.

maybe close the popup also on shutdown event? (and adjust the tag fo it)

probably need to track if its open it in a session prop too then

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 31, 2023, 10:33am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128/3 "2023-07-31T10:33:45Z")

</div>

I forget what a page id is, but you might be able to use this function to check if the page is open

[https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo](https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 31, 2023, 11:05am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128/4 "2023-07-31T11:05:45Z")

</div>

pageid is nothing usefull...

i would avoid having to look up everything, but if you rly have to, this might help

> [@Get Perspective Session Page Info from PageIds](https://forum.inductiveautomation.com/t/get-perspective-session-page-info-from-pageids/74585/9):
>
> Just for completeness/posterity, here is a sample of full code that does what I set out to do, ie browse active sessions for a given project, determine if a given view is open on those sessions, and then grab the session id and a couple of session custom props from those sessions and build it out into a map to write to a JSON tag. 
> 
> > **Session Monitor Browse Code**
> >
> > from com.inductiveautomation.ignition.gateway import IgnitionGateway import json project\_name = sytem.util.getProjectName() target\_view\_pa…

---

<div class="post-metadata">

**Author:** ![AVG04](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AVG04](https://forum.inductiveautomation.com/u/AVG04)\
**Post date:** [August 2, 2023, 10:12am UTC](https://forum.inductiveautomation.com/t/ways-to-check-if-the-popup-is-open/77128/5 "2023-08-02T10:12:18Z")

</div>

yeah, found that this work on checking if the specific screen is opened in a session.

Thanks a lot!
