# Template Repeater problem (Manipulate dataset parameter)

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-problem-manipulate-dataset-parameter/11879>\
**Category:** General Discussion\
**Created:** [June 29, 2016, 2:55pm UTC](https://forum.inductiveautomation.com/t/template-repeater-problem-manipulate-dataset-parameter/11879 "2016-06-29T14:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anwesha\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Anwesha\_Gupta](https://forum.inductiveautomation.com/u/Anwesha_Gupta)\
**Post date:** [June 29, 2016, 2:55pm UTC](https://forum.inductiveautomation.com/t/template-repeater-problem-manipulate-dataset-parameter/11879/1 "2016-06-29T14:55:26Z")

</div>

Hi,  
I want to manipulate the dataset parameter of a template repeater based on a value.  
I have only one template parameter - “Rack\_Num”. And i would like to create a column in the dataset with 13 rows.  
eg : if VALUE = 1: Rack\_Num column to be created in dataset with values 1-13.  
if VALUE = 2: Rack\_Num column to be created in dataset with values 14-26.  
if VALUE = 3: Rack\_Num column to be created in dataset with values 27-39.  
if VALUE = 4: Rack\_Num column to be created in dataset with values 40-52.  
if VALUE = 5: Rack\_Num column to be created in dataset with values 53-65.

Currently i have just entered values by hand but the requirement is to dynamize the columns based on a value. Just added a screenshot for dataset as it is being used now.  
I am using template repeater for the first time and cant get my head around this problem.  
Can anyone please help?

---

<div class="post-metadata">

**Author:** ![jdfrankston](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@jdfrankston](https://forum.inductiveautomation.com/u/jdfrankston)\
**Post date:** [July 12, 2016, 8:30pm UTC](https://forum.inductiveautomation.com/t/template-repeater-problem-manipulate-dataset-parameter/11879/2 "2016-07-12T20:30:04Z")

</div>

I do something similar with the Template Canvas. I manipulate a dataset that is a custom property of the Template Canvas, I then bind this dataset to the built in “Templates” property of the Template Canvas (the “Templates” property defines all the parameters for the Template Canvas). This way you can easily manipulate the dataset to get the desired results with a script and the Template Canvas or in your case Repeater will update with the dataset.
