# Template repeater custom start / count

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-custom-start-count/72031>\
**Category:** Ignition\
**Created:** [April 4, 2023, 4:04pm UTC](https://forum.inductiveautomation.com/t/template-repeater-custom-start-count/72031 "2023-04-04T16:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfolkes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rfolkes](https://forum.inductiveautomation.com/u/rfolkes)\
**Post date:** [April 4, 2023, 4:04pm UTC](https://forum.inductiveautomation.com/t/template-repeater-custom-start-count/72031/1 "2023-04-04T16:04:26Z")

</div>

Looking to see if there is a better way to do this.  
Customer wants to have multiple template repeaters on a page (Doesn't want scroll bars just a set amount per area)

Repeater 1 will be Index 1-20  
Repeater 2 will be Index 21-40  
3 -- 41-60  
4 --61-80  
5 -- 81-100

Another page will continue from 101

I don't think I can adjust the index start num or can I?

What that leaves me with is making an SQL query that references just a table of numbers and build the dataset for the repeater based on that with a start and stop custom parameter for that repeater. I don't want to manually create the data table for each instance of this that I will do.

Any other ideas or improvements?

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [April 4, 2023, 5:32pm UTC](https://forum.inductiveautomation.com/t/template-repeater-custom-start-count/72031/2 "2023-04-04T17:32:44Z")

</div>

Hi @rfolkes, I'm not sure i inderstand your question.

> [@rfolkes](#):
>
> Customer wants to have multiple template repeaters on a page (Doesn't want scroll bars just a set amount per area)

Since you mention Template repeater i'll assume it's Vision.

> [@rfolkes](#):
>
> I don't think I can adjust the index start num or can I?

The index start num for the dataset parameter of the Template Repeater called "templateParam"?  
That can be customized since you have to make it yourself, especially with a script since you have that many rows.

> [@rfolkes](#):
>
> What that leaves me with is making an SQL

What i don't get is why would you need a query? It would return you a dataset anyway and you also have to filter it, so why not just have a script build it?

Wouldn't a script like this build what you want?

```auto
Ranges = [(1,20),(21,40),(41,60),(61,80),(81,100)]
for RangeStart,RangeFinish in Ranges:
	print system.dataset.toDataSet(["Index"], [[Index] for Index in range(RangeStart,RangeFinish)])

```
