# Update row in template repeater using button (outside from template) click

**URL:** <https://forum.inductiveautomation.com/t/update-row-in-template-repeater-using-button-outside-from-template-click/71582>\
**Category:** Ignition\
**Tags:** ignition81, database, vision, scripting\
**Created:** [March 25, 2023, 6:34am UTC](https://forum.inductiveautomation.com/t/update-row-in-template-repeater-using-button-outside-from-template-click/71582 "2023-03-25T06:34:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 25, 2023, 10:55am UTC](https://forum.inductiveautomation.com/t/update-row-in-template-repeater-using-button-outside-from-template-click/71582/8 "2023-03-25T10:55:40Z")

</div>

If your template parameter bindings are bidirectional, you could simply reuse them to build your query arguments. Here is an example script that does this:

```auto
repeater = event.source.parent.getComponent('Template Repeater')
for template in repeater.getLoadedTemplates():
	arguments = []
	for customProperty in template.dynamicProps:
		arguments.append(template.getPropertyValue(customProperty))
	print arguments #use these arguments for your UPDATE query

```

**Edit:** replaced getTemplates function with built in method for getting loaded templates

---

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