# Page Up/Down On Table

**URL:** <https://forum.inductiveautomation.com/t/page-up-down-on-table/3208>\
**Category:** Ignition\
**Created:** [August 22, 2011, 9:23pm UTC](https://forum.inductiveautomation.com/t/page-up-down-on-table/3208 "2011-08-22T21:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malcolm](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/malcolm/32/5970_2.png) [@Malcolm](https://forum.inductiveautomation.com/u/Malcolm)\
**Post date:** [August 22, 2011, 9:23pm UTC](https://forum.inductiveautomation.com/t/page-up-down-on-table/3208/1 "2011-08-22T21:23:14Z")

</div>

Is it possible to create buttons to ‘Page Up’ and ‘Page Down’ the contents of a table, The scroll bars are a little difficult to use on a touch screen.

Thanks in advance

Malcolm

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [August 22, 2011, 11:11pm UTC](https://forum.inductiveautomation.com/t/page-up-down-on-table/3208/2 "2011-08-22T23:11:09Z")

</div>

You can put the following script on a button that will scroll the table down:`from java.awt import Rectangle
table = event.source.parent.getComponent('Table').getTable()
viewport = table.getParent()
rect = viewport.getViewRect()
newRect = Rectangle(rect.x, rect.y + 50, rect.width, rect.height)
table.scrollRectToVisible(newRect)`You can use the same code to scroll up but do -50 instead of +50. Hope that helps.
