# How to scroll to the highlighed row of the table

**URL:** <https://forum.inductiveautomation.com/t/how-to-scroll-to-the-highlighed-row-of-the-table/54039>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 13, 2021, 11:10am UTC](https://forum.inductiveautomation.com/t/how-to-scroll-to-the-highlighed-row-of-the-table/54039 "2021-12-13T11:10:25Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 16, 2021, 7:34am UTC](https://forum.inductiveautomation.com/t/how-to-scroll-to-the-highlighed-row-of-the-table/54039/26 "2021-12-16T07:34:40Z")

</div>

> [@manjuyadav95.m](#):
>
> 1. The above one getting triggered from Transform code below on main view…
> 
> ```auto
> returned_rows.append(row_dict)
> system.perspective.sendMessage("RowFocus")
> self.props.selection.selectedRow=-1
> 
> ```

You gotta put the if here

```auto
returned_rows.append(row_dict)
if not self.(...).custom.Confirmed:
  system.perspective.sendMessage("RowFocus")
self.props.selection.selectedRow=-1

```

> [@manjuyadav95.m](#):
>
> on main view \> configure script\> created msg handler as per below …which gets triggered from checkbox view  
> ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/e/bef7ad2633eaf60328070922ea2f799206bc2bd0.png)

And here you just set it false. dont trigger an other message here  
self.(...).custom.confirmed = false

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-scroll-to-the-highlighed-row-of-the-table/54039)._
