# Popup

**URL:** <https://forum.inductiveautomation.com/t/popup/4666>\
**Category:** Ignition\
**Created:** [June 20, 2012, 6:56am UTC](https://forum.inductiveautomation.com/t/popup/4666 "2012-06-20T06:56:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hazey](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@hazey](https://forum.inductiveautomation.com/u/hazey)\
**Post date:** [June 20, 2012, 6:56am UTC](https://forum.inductiveautomation.com/t/popup/4666/1 "2012-06-20T06:56:50Z")

</div>

Hi guys, I am trying to create a popup and pass parameters. I have attached some screen shots showing script and error. I need to pass OPC tags into parameters, looking into it I think the script is passing the value and the data quality (good), so it cannot convert good to integer. Am I going about this the right way?

Ver 7.5.0 and Controllogix over OPC UA.

thx  
hazey

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/10be8e8ab4cb38ef0061f9651b47a27997a61362.JPG)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1c12dc5540194532e08db72ca9b83eeb2c3ded71.JPG)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [June 20, 2012, 2:46pm UTC](https://forum.inductiveautomation.com/t/popup/4666/2 "2012-06-20T14:46:40Z")

</div>

You are trying to pass in a tag value so you need to use the system.tag.getTagValue function:`system.nav.openWindow("Popups/T_JET_02E_Popup", {"Mode" : system.tag.getTagValue("UGLPLC/Global/SJetFanOut/SJetFanOut_2_/Mode"})
system.nav.centerWindow("Popups/T_JET_02E_Popup")`

---

<div class="post-metadata">

**Author:** ![hazey](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@hazey](https://forum.inductiveautomation.com/u/hazey)\
**Post date:** [June 20, 2012, 8:31pm UTC](https://forum.inductiveautomation.com/t/popup/4666/3 "2012-06-20T20:31:27Z")

</div>

Travis Yes sorry the script I tried was system.tag.read, but the script returns [9, Good] as the value. Appears it is has wrapped the data quality into it.

So I must use system.tag.getTagValue?

thx

hazey

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [June 20, 2012, 9:17pm UTC](https://forum.inductiveautomation.com/t/popup/4666/4 "2012-06-20T21:17:46Z")

</div>

You can use either system.tag.getTagValue(), or system.tag.read().value.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [June 21, 2012, 3:31pm UTC](https://forum.inductiveautomation.com/t/popup/4666/5 "2012-06-21T15:31:01Z")

</div>

Right, as James outlined if you use system.tag.read you must do the following:`system.tag.read("path/to/tag").value`Since this function returns the value, quality and timestamp.
