# Write to a child template from a template repeater level

**URL:** <https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770>\
**Category:** Ignition\
**Tags:** ignition79, vision, scripting\
**Created:** [March 22, 2024, 8:28pm UTC](https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770 "2024-03-22T20:28:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathianandan.dharmas](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sathianandan.dharmas](https://forum.inductiveautomation.com/u/sathianandan.dharmas)\
**Post date:** [March 22, 2024, 8:28pm UTC](https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770/1 "2024-03-22T20:28:51Z")

</div>

Hi Inductive World,

I'm trying to take a 'template repeater' parameter value and write to one of the template parameters (on the child template). This is the script I have to get the components of the template.

```
repeater = event.source.parent.getComponent('Template Repeater')
loadedTemplates = repeater.getLoadedTemplates()
for temp in loadedTemplates:
	y = temp.getComponent('rowCountTempParam')
	print y
	valueToWrite = event.source.rowCount
	if y is not None:	
		x = y.setParameter('rowCountTempParam', valueToWrite)

```

I'm able to access the child template component 'rowCountTempParam' from the outside layer but it shows up as 'none' and can't write to it. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 24, 2024, 12:25pm UTC](https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770/2 "2024-03-24T12:25:59Z")

</div>

See this post, and note how I handle accessing the template's custom properties:

[update-row-in-template-repeater-using-button-outside-from-template-click](https://forum.inductiveautomation.com/t/update-row-in-template-repeater-using-button-outside-from-template-click/71582/8)

Also, in case your running into the pycomponent wrapper issue, see this post for a way around that:  
[why-cant-custom-properties-and-methods-be-accessed-from-a-component-that-is-obtained-using-swingutilities-getancestorofclass](https://forum.inductiveautomation.com/t/why-cant-custom-properties-and-methods-be-accessed-from-a-component-that-is-obtained-using-swingutilities-getancestorofclass/78606/3)

---

<div class="post-metadata">

**Author:** ![sathianandan.dharmas](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sathianandan.dharmas](https://forum.inductiveautomation.com/u/sathianandan.dharmas)\
**Post date:** [March 26, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770/3 "2024-03-26T13:34:11Z")

</div>

Thank you so much @justinedwards.jle . I was able to use the dynamicProps and setPropertyValue() function to achieve this.

---

<div class="post-metadata">

**Author:** ![Samer\_Samy1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samer_samy1/32/52910_2.png) [@Samer\_Samy1](https://forum.inductiveautomation.com/u/Samer_Samy1)\
**Post date:** [November 25, 2024, 11:01am UTC](https://forum.inductiveautomation.com/t/write-to-a-child-template-from-a-template-repeater-level/87770/4 "2024-11-25T11:01:38Z")

</div>

pls show me example on setPropertyValue on a template inside template repeater as I am getting an error
