# Automatically selecting new row in table

**URL:** <https://forum.inductiveautomation.com/t/automatically-selecting-new-row-in-table/7426>\
**Category:** Ignition\
**Created:** [October 16, 2013, 9:11pm UTC](https://forum.inductiveautomation.com/t/automatically-selecting-new-row-in-table/7426 "2013-10-16T21:11:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhortig](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@jhortig](https://forum.inductiveautomation.com/u/jhortig)\
**Post date:** [October 16, 2013, 9:11pm UTC](https://forum.inductiveautomation.com/t/automatically-selecting-new-row-in-table/7426/1 "2013-10-16T21:11:01Z")

</div>

I’m using a transaction group to copy recipes from a PLC to a data table. The transaction group stores the recipe data in a new row.

After the execution is complete I want to automatically select the new row in the table and force the operator to give the recipe a new name. (The name is stored in a column of the table)

How can I do this?

Thanks,  
Juergen

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [October 24, 2013, 7:10pm UTC](https://forum.inductiveautomation.com/t/automatically-selecting-new-row-in-table/7426/2 "2013-10-24T19:10:17Z")

</div>

This was solved in an email, but the short version is this:

You need to get the row index if you don’t already have it, use table.setSelectedRow(), and then system.gui.input() to force the user to enter some text for you to run system.db.runPrepUpdate() and refresh the table.
