# Get data from database Table to Label in Popup Window using scripting, Parameterized Popup Window

**URL:** <https://forum.inductiveautomation.com/t/get-data-from-database-table-to-label-in-popup-window-using-scripting-parameterized-popup-window/68617>\
**Category:** Ignition\
**Created:** [January 16, 2023, 4:59am UTC](https://forum.inductiveautomation.com/t/get-data-from-database-table-to-label-in-popup-window-using-scripting-parameterized-popup-window/68617 "2023-01-16T04:59:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [January 16, 2023, 4:59am UTC](https://forum.inductiveautomation.com/t/get-data-from-database-table-to-label-in-popup-window-using-scripting-parameterized-popup-window/68617/1 "2023-01-16T04:59:31Z")

</div>

Hi,  
I have Label and OK Button in pop up window .On main window I have drop down on property change I have written script. if selected value is present in data base I am trying to open pop up window and display its row value in Label.  
I referred below link for this. But how to do with scripting. I am getting some warning.

> **[Parameterized Popup Window - Popup Windows](https://inductiveuniversity.com/videos/parameterized-popup-window/7.9)**
>
> Parameterized Popup Window: Learn how to create parameterized popup windows that can be re-used for multiple objects depending on the values that were passed in. Learn more about Popup Windows

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/00defd16d83593782a347a85f7971fceb85f2428.png)

```auto
sapordernumber = row["SAPOrderNum"]
param1 = "Line is in Progress for SAP Order Number" +sapordernumber
window = system.nav.openWindow('Raptor_Tables_New_Windows/Popup (1)', {'SAPOrderNumber' : param1, '' : ''})
system.nav.centerWindow(window)

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/b/0bf6a45912464fd0d557258ccd77eee491ba1d4c.png)

Thank you

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 17, 2023, 5:30pm UTC](https://forum.inductiveautomation.com/t/get-data-from-database-table-to-label-in-popup-window-using-scripting-parameterized-popup-window/68617/2 "2023-01-17T17:30:02Z")

</div>

> [@kavya\_shree](#):
>
> `window = system.nav.openWindow('Raptor_Tables_New_Windows/Popup (1)', {'SAPOrderNumber' : param1, '' : ''})`

Why are you passing a second dictionary parameter of `"" : ""` (empty string to empty string)? That is likely where the warning is coming from.
