# Pass inputBox string on vision window open to parameter in input box

**URL:** <https://forum.inductiveautomation.com/t/pass-inputbox-string-on-vision-window-open-to-parameter-in-input-box/24095>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 12, 2019, 2:05pm UTC](https://forum.inductiveautomation.com/t/pass-inputbox-string-on-vision-window-open-to-parameter-in-input-box/24095 "2019-04-12T14:05:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dholt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dholt/32/4458_2.png) [@dholt](https://forum.inductiveautomation.com/u/dholt)\
**Post date:** [April 12, 2019, 2:05pm UTC](https://forum.inductiveautomation.com/t/pass-inputbox-string-on-vision-window-open-to-parameter-in-input-box/24095/1 "2019-04-12T14:05:51Z")

</div>

Hello. I am working on a project where an employee can scan a label and a corresponding window will open to show them what color/specification said part should be. Additionally there is a GUID attached to this scan that I need to log in SQL. My thought is I’ll have an input box come up when vision client is opened stating "Scan part "; When scanned it will pass that text through to the vision window when opened. I can get the input box to come up before vision window opens with : system.gui.inputBox("Scan Part ", “”) However, it’s not passing the value through. I know I’m doing this wrong, I’m not very good with scripting yet and just need to figure out how to pass what’s been scanned into the input box, into the parameter I set on the vision window itself titled “scan”. Can anyone assist?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 12, 2019, 2:31pm UTC](https://forum.inductiveautomation.com/t/pass-inputbox-string-on-vision-window-open-to-parameter-in-input-box/24095/2 "2019-04-12T14:31:07Z")

</div>

You should check out _system.nav.openWindow()_. Parameters are passed by way of a dictionary to properties in the Root Container of the target window. Put some custom properties on the target window and use them in your openWindow script. Something like:

```python
scanIn = system.gui.inputBox("Scan Part ", "")
if scanIn != None:
  # parse parameters and guid, and whatever else out of the scan.
  #That part is up to you. ;)
  parameter1 = 'parameter1info'
  guid = 'guidInfo'
  
  system.nav.openWindow("SomeWindowName", {"parameter1PropertyName": parameter1, "guidPropertyName":guid})
  system.nav.centerWindow("SomeWindowName")

```

---

<div class="post-metadata">

**Author:** ![dholt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dholt/32/4458_2.png) [@dholt](https://forum.inductiveautomation.com/u/dholt)\
**Post date:** [April 12, 2019, 2:31pm UTC](https://forum.inductiveautomation.com/t/pass-inputbox-string-on-vision-window-open-to-parameter-in-input-box/24095/3 "2019-04-12T14:31:52Z")

</div>

Thank you for the reply, I’ll plug it in and see what happens haha! thanks!
