# Multiple popup check

**URL:** <https://forum.inductiveautomation.com/t/multiple-popup-check/5029>\
**Category:** Ignition\
**Created:** [August 17, 2012, 12:53pm UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029 "2012-08-17T12:53:56Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![gzarate](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@gzarate](https://forum.inductiveautomation.com/u/gzarate)\
**Post date:** [January 25, 2020, 2:16am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/21 "2020-01-25T02:16:19Z")

</div>

https:/uploads/iatesting/original/2X/0/0c2e417a101a529ccd7716280f66ec51a7f77e25.mp4

Even with this change does not work I don’t know what I’m doing wrong

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [January 25, 2020, 2:21pm UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/22 "2020-01-25T14:21:14Z")

</div>

> [@gzarate](#):
>
> I had the same problem that the guy that start this post my code was done to open multiple pop ups but the problem was that if you click on the same object 3 times 3 times will bring a pop up no matter if it is already open.

Check out this post, [Nav Helper system.nav.openWindowInstace - #14 by choy](http://forum.inductiveautomation.com/t/nav-helper-system-nav-openwindowinstace/1825/14), perhaps it will be more helpful.

If that doesn't help, you really should contact IA support and request some one-on-one assistance. Maybe a training class would be beneficial for you?

---

<div class="post-metadata">

**Author:** ![choy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/choy/32/4190_2.png) [@choy](https://forum.inductiveautomation.com/u/choy)\
**Post date:** [January 27, 2020, 6:45am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/23 "2020-01-27T06:45:19Z")

</div>

https:/uploads/iatesting/original/2X/0/0d3624c829db79854571f6d21556e6c0e3e499c9.mp4

I done it in our project last year, manage to make it work very well… at first i was struggling with the code after studying basic python programming help me a lot.

---

<div class="post-metadata">

**Author:** ![choy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/choy/32/4190_2.png) [@choy](https://forum.inductiveautomation.com/u/choy)\
**Post date:** [January 27, 2020, 6:49am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/24 "2020-01-27T06:49:00Z")

</div>

![MultiPopup](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/560dbda449f68c176fd0075337ec7b817710e3ca.png)

Here’s the code i used to make multiPopup works.

---

<div class="post-metadata">

**Author:** ![gzarate](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@gzarate](https://forum.inductiveautomation.com/u/gzarate)\
**Post date:** [January 31, 2020, 9:25pm UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/25 "2020-01-31T21:25:44Z")

</div>

Thanks for the code it looks like it works perfect I just have some questions about this line because is giving me this error  
“”"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""  
Traceback (most recent call last):  
File “event:mouseReleased”, line 72, in   
NameError: name ‘window’ is not defined  
“”"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

```auto
if window.name == "01_popupPID" and window.rootContainer.Tagpath == event.source.PID_udt.Meta.TagPath:

```

I believe the 01\_popupPID is the name of the pop up to call on my case its call it’s “Analog\_Double” and “_window.rootContainer.Tagpath_” would be the variable in the pop up that have the ID on my case it is called “TAGNAME” and the last thing it’s the “_event.source.PID\_udt.Meta.TagPath:_” this would be the variable with the ID who resides inside your object PID\_udt and its called Tagpath and this last two variables to compare if the pop up is opened  
so I came with this line for me

```auto
if window.name == "Analog_Double" and window.rootContainer.TAGNAME == event.source.TagName:

```

so I don’t know what I’m missing .

Regards.

---

<div class="post-metadata">

**Author:** ![choy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/choy/32/4190_2.png) [@choy](https://forum.inductiveautomation.com/u/choy)\
**Post date:** [February 4, 2020, 5:26am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/26 "2020-02-04T05:26:29Z")

</div>

Yeah your right 01\_PopupPID is the PID popup title, on the “window.rootContainer.Tagpath” is a string parameter on the PID popup in which during a key pressed that parameter would have a string path to the TAG , {‘Tagpath’ : event.source.PID\_udt.Meta.TagPath}. That will be your parameter binding to every element on the Popup.

---

<div class="post-metadata">

**Author:** ![gzarate](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@gzarate](https://forum.inductiveautomation.com/u/gzarate)\
**Post date:** [February 5, 2020, 5:32pm UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/27 "2020-02-05T17:32:52Z")

</div>

Thanks Choy for all your help I really appreciate it  
it is working great

Now how do u do to set up the location of the pop up near to the device?

---

<div class="post-metadata">

**Author:** ![choy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/choy/32/4190_2.png) [@choy](https://forum.inductiveautomation.com/u/choy)\
**Post date:** [February 6, 2020, 1:58am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/28 "2020-02-06T01:58:38Z")

</div>

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

Your welcome! Im glad it helped you, do please continue to share ideas to the forum if someone needs it. Cheers to Ignition the best HMI by far for me.

Here my code to set Popup location.

---

<div class="post-metadata">

**Author:** ![gzarate](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@gzarate](https://forum.inductiveautomation.com/u/gzarate)\
**Post date:** [February 11, 2020, 4:07am UTC](https://forum.inductiveautomation.com/t/multiple-popup-check/5029/29 "2020-02-11T04:07:06Z")

</div>

Hi Choy thanks a lot for share it it works perfect I didn’t answer before because I was very busy last week I been following your advice and take a look to python and it help to understand it much better I discovered about Ignition a few weeks ago looking for a software to replace an HIM because the software used have its just too slow and first I was interested on wonderware because it is popular and there is information outside that may can help but they don’t offer demos, too bad for them and then I try OAS but I think it’s too complicate it and this one ignition it’s my favorite so far I have working it just for a few weeks and everything can be solve here

[Previous page](https://forum.inductiveautomation.com/t/multiple-popup-check/5029.md?page=1)
