# PLC input to table

**URL:** <https://forum.inductiveautomation.com/t/plc-input-to-table/3461>\
**Category:** Ignition\
**Created:** [October 19, 2011, 6:20pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461 "2011-10-19T18:20:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WEControl](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@WEControl](https://forum.inductiveautomation.com/u/WEControl)\
**Post date:** [October 19, 2011, 6:20pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461/1 "2011-10-19T18:20:18Z")

</div>

I have an input from a plc set up as a tag with a boolean datatype so when I press a button it changes from a 0 to a 1. I want to set it so when you push the button it pulls up a certain “customer” from a table and either just displays their name address etc or brings it up and lets me edit it in another window. How might I go about doing that?

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [October 19, 2011, 8:45pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461/2 "2011-10-19T20:45:45Z")

</div>

It sounds like you just want to create a Client [Tag Change Script](http://www.inductiveautomation.com/support/usermanuals/ignition/tag_change_scripts.htm), that then opens a window with the [system.nav.openWindow](http://www.inductiveautomation.com/support/usermanuals/ignition/system_nav_openwindow.htm) function.

When opening a window, you can pass in the user that you want to view by adding a dynamic property on the root container of the target window, and then passing a value with your open call. You didn’t mention how you would be selecting the user, but in that tag change script you could grab the user id from a tag, the database, etc.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![WEControl](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@WEControl](https://forum.inductiveautomation.com/u/WEControl)\
**Post date:** [October 20, 2011, 2:20pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461/3 "2011-10-20T14:20:55Z")

</div>

I would be selecting the user based on the ID column. So I would want to go into the other room push the button come out and see a new window that says “Joe Crane New Vegas 7872039”

---

<div class="post-metadata">

**Author:** ![WEControl](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@WEControl](https://forum.inductiveautomation.com/u/WEControl)\
**Post date:** [October 20, 2011, 2:39pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461/4 "2011-10-20T14:39:17Z")

</div>

I am just not very good with scripting so I don’t really know how to do the tag change scripts and such. 😊

---

<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:** [October 20, 2011, 2:43pm UTC](https://forum.inductiveautomation.com/t/plc-input-to-table/3461/5 "2011-10-20T14:43:08Z")

</div>

Maybe you should give us a call at (800) 266-7798 and press 2 for tech support. Our reps can assist you with this.
