# system.nav.openWindowInstance not opening new instance

**URL:** <https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514>\
**Category:** Ignition\
**Created:** [November 4, 2013, 1:00am UTC](https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514 "2013-11-04T01:00:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [November 4, 2013, 1:00am UTC](https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514/1 "2013-11-04T01:00:28Z")

</div>

I have the following code in three different buttons and when i click them they always close teh first instance. What am i doing wrong? I tried it with and without the center window with the same result, Thanks

import system  
ppt = system.tag.read(“Extractor/Misc/Extra\_Tag”).value

system.nav.openWindowInstance(‘TSC\_Popup\_Part\_Temps’, {‘ExtractorNum’ : 1, ‘PrimaryPartTemp’ : ppt})  
system.nav.centerWindow(‘TSC\_Popup\_Part\_Temps’)

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [November 11, 2013, 3:21am UTC](https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514/2 "2013-11-11T03:21:48Z")

</div>

crickets…

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [November 11, 2013, 4:22pm UTC](https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514/3 "2013-11-11T16:22:47Z")

</div>

I don’t see anything wrong with this code so I would look elsewhere for the problem. I’d look for any code that could close that window and see if it is somehow triggering when you open a new instance of the window.

Also check the console in the client to see if any exceptions are being raised.

---

<div class="post-metadata">

**Author:** ![RRRancher](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RRRancher](https://forum.inductiveautomation.com/u/RRRancher)\
**Post date:** [November 11, 2013, 9:19pm UTC](https://forum.inductiveautomation.com/t/system-nav-openwindowinstance-not-opening-new-instance/7514/4 "2013-11-11T21:19:25Z")

</div>

I wonder if you are having the same problem I had when I wrote my first openWindow script. When I ran it, it would switch to the new window I was opening, instead of popping it up on top of the window I currently had open. I was confused for a while, then realized it was because I was in design mode. Once I launched the project, it worked perfectly.
