# How can I paginate through rows of data in a visual display?

**URL:** <https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347>\
**Category:** Questions about Thunkable X\
**Tags:** solved, spreadsheet\
**Created:** [April 1, 2022, 1:57pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347 "2022-04-01T13:57:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![atlmarothon2022bbpsm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@atlmarothon2022bbpsm](https://community.thunkable.com/u/atlmarothon2022bbpsm)\
**Post date:** [April 1, 2022, 1:57pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/1 "2022-04-01T13:57:50Z")

</div>

Hello,  
I wrote this code to display information about multiple exercise on a single screen. But was not able to resolve the issue coming in next nd back button. Can somebody help me with that? I have attached the screenshot of my code and spreadsheet for the same

Thank You in Advance!  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7e524d98d8e4f91a07f3f80f14e205c65730b21b.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6d8ad6acd1cc4d14c83ddb51ff2dd1e2aba9414e.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/4/4465e8d1b1c09e29a0f72d3f139f7d688d646497.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 1, 2022, 2:09pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/2 "2022-04-01T14:09:14Z")

</div>

You haven’t explained what you’re trying to do.

What should the next and back buttons do?

And what is the purpose of checking the row number?

---

<div class="post-metadata">

**Author:** ![atlmarothon2022bbpsm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@atlmarothon2022bbpsm](https://community.thunkable.com/u/atlmarothon2022bbpsm)\
**Post date:** [April 1, 2022, 2:15pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/3 "2022-04-01T14:15:33Z")

</div>

Like when I am clicking next I should see the next exercise.  
Purpose of checking the row number is trying to extract data

---

<div class="post-metadata">

**Author:** ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)\
**Post date:** [April 1, 2022, 2:32pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/4 "2022-04-01T14:32:22Z")

</div>

Inside both the if conditions, change the ‘and’ block with an ‘or’ block

Also, instead of putting the get values inside screen opens block, create a function and put those blocks in. Then you can call the function after both change variable blocks

---

<div class="post-metadata">

**Author:** ![atlmarothon2022bbpsm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@atlmarothon2022bbpsm](https://community.thunkable.com/u/atlmarothon2022bbpsm)\
**Post date:** [April 1, 2022, 2:37pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/5 "2022-04-01T14:37:58Z")

</div>

I am getting the first exercise which is walking but when clicking on next I am not able to go to the next exercise

---

<div class="post-metadata">

**Author:** ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)\
**Post date:** [April 1, 2022, 2:39pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/6 "2022-04-01T14:39:16Z")

</div>

I edited my reply above, check that

---

<div class="post-metadata">

**Author:** ![atlmarothon2022bbpsm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@atlmarothon2022bbpsm](https://community.thunkable.com/u/atlmarothon2022bbpsm)\
**Post date:** [April 1, 2022, 2:51pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/7 "2022-04-01T14:51:11Z")

</div>

Thanks! it worked

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 30, 2022, 2:51pm UTC](https://community.thunkable.com/t/how-can-i-paginate-through-rows-of-data-in-a-visual-display/1813347/8 "2022-06-30T14:51:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
