# Get Highlighted Row - Perspective Table

**URL:** <https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 25, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893 "2023-07-25T17:52:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [July 25, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/1 "2023-07-25T17:52:11Z")

</div>

Is there a way to retrieve the highlighted row index on a perspective table? I see that you can get the selected row but not a way to retrieve what row is currently highlighted.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 25, 2023, 8:34pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/2 "2023-07-25T20:34:51Z")

</div>

Aren't they one and the same?  
If you're wanting this from a script when clicking on a row, you can use the onRowClick action and get the `rowIndex` from the `event` object

[https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Table](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Table)

---

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [July 25, 2023, 9:04pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/3 "2023-07-25T21:04:48Z")

</div>

I'm able to get the selected row without any issues. You can have a row selected as well as have another row highlighted. It's two separate functions.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa6f0cf9b0cbedc90e1522beaa7a45d1c4dc2494.png)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 25, 2023, 9:10pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/4 "2023-07-25T21:10:21Z")

</div>

Oh, you mean the row with the mouse hovered over it? This isn't possible out of the box. You might be able to cobble something with JavaScript injection, but that's out of my depths

---

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [July 25, 2023, 9:11pm UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/5 "2023-07-25T21:11:42Z")

</div>

Understood, thanks for the response.

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 9, 2024, 7:48am UTC](https://forum.inductiveautomation.com/t/get-highlighted-row-perspective-table/76893/6 "2024-07-09T07:48:53Z")

</div>

Is this still not possible without js injection?
