# setSelectedIndex question

**URL:** <https://forum.servoy.com/t/setselectedindex-question/3139>\
**Category:** Classic Servoy\
**Created:** [November 25, 2004, 2:31pm UTC](https://forum.servoy.com/t/setselectedindex-question/3139 "2004-11-25T14:31:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [November 25, 2004, 2:31pm UTC](https://forum.servoy.com/t/setselectedindex-question/3139/1 "2004-11-25T14:31:43Z")

</div>

Hello,

when using controller.setSelectedIndex(200); I end up at the very last record of the table (e.g. Index 6549). When using controller.setSelectedIndex(199); I end up at record 199.

Is this intended? Or: how do I jump to record 200)?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [November 29, 2004, 11:18am UTC](https://forum.servoy.com/t/setselectedindex-question/3139/2 "2004-11-29T11:18:00Z")

</div>

Hi,

I just found out that this just happens in table view. In record view it does not occurr. So I suppose this is a bug?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 29, 2004, 7:58pm UTC](https://forum.servoy.com/t/setselectedindex-question/3139/3 "2004-11-29T19:58:17Z")

</div>

i have fixed this for 2.1.2.
