# Right-click a table component and select the row first

**URL:** <https://forum.inductiveautomation.com/t/right-click-a-table-component-and-select-the-row-first/12322>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 2, 2016, 3:52pm UTC](https://forum.inductiveautomation.com/t/right-click-a-table-component-and-select-the-row-first/12322 "2016-11-02T15:52:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [November 2, 2016, 4:28pm UTC](https://forum.inductiveautomation.com/t/right-click-a-table-component-and-select-the-row-first/12322/3 "2016-11-02T16:28:41Z")

</div>

If you can switch to a power table this is very easy to accomplish.

In the onPopupTrigger extension function simply add these 2 lines

`	if rowIndex > -1:
		self.selectedRow = rowIndex`

If you have to stick with a standard table then I know it is possible to do but I don’t remember how at the moment. We used to have script in place to handle it before we switched over to the power table.

If you can’t move to a power table and nobody else posts a solution I can probably dig through our project archives and find an answer.

---

_[View the full topic](https://forum.inductiveautomation.com/t/right-click-a-table-component-and-select-the-row-first/12322)._
