# Displaying popup

**URL:** <https://forum.inductiveautomation.com/t/displaying-popup/6790>\
**Category:** Ignition\
**Created:** [June 28, 2013, 1:25pm UTC](https://forum.inductiveautomation.com/t/displaying-popup/6790 "2013-06-28T13:25:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drettberg](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@drettberg](https://forum.inductiveautomation.com/u/drettberg)\
**Post date:** [June 28, 2013, 1:25pm UTC](https://forum.inductiveautomation.com/t/displaying-popup/6790/1 "2013-06-28T13:25:56Z")

</div>

I have a script in which I want to display a popup, then call a web service to perform an action. It appears that the popup is not actually displaying until the web method call completes. Is there some method I can call to have the system display the popup before making the web method call?

---

<div class="post-metadata">

**Author:** ![Ron.Lor](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ron.Lor](https://forum.inductiveautomation.com/u/Ron.Lor)\
**Post date:** [June 28, 2013, 4:37pm UTC](https://forum.inductiveautomation.com/t/displaying-popup/6790/2 "2013-06-28T16:37:54Z")

</div>

Can I see your script?

---

<div class="post-metadata">

**Author:** ![drettberg](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@drettberg](https://forum.inductiveautomation.com/u/drettberg)\
**Post date:** [July 1, 2013, 3:49pm UTC](https://forum.inductiveautomation.com/t/displaying-popup/6790/3 "2013-07-01T15:49:44Z")

</div>

This is within a button actionPerformed script:

```
    system.nav.openWindow("Popups/PrintingLabelsPopup")
system.nav.centerWindow("Popups/PrintingLabelsPopup")

wsdl = "http://server/transservice/transactionService.asmx?WSDL"
client = suds.client.Client(wsdl)
res = client.service.PrintLabel( woNum, qty, cntOp )

```

If I disable the last 2 lines, the window opens immediately.

---

<div class="post-metadata">

**Author:** ![drettberg](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@drettberg](https://forum.inductiveautomation.com/u/drettberg)\
**Post date:** [July 2, 2013, 11:27am UTC](https://forum.inductiveautomation.com/t/displaying-popup/6790/4 "2013-07-02T11:27:26Z")

</div>

Figured it out. Used the invokeAsynchronous method to call the web service asynchronously.
