I am trying to create a template repeater that repeats x number of template instances. The template being repeated has 4 template properties, three of these will always contain the same value across each instance. The fourth is the one that I want to create instances from. However, I still need the other properties to update as well. Is there a way to bind these template properties to the parent template repeater? I’ve tried using a cell update with the template data but that creates too much manual work and is not dynamic enough.
Appending my original question with this:
Is it possible to call a templates custom method script from it’s parent template repeater?
Yes, you can use loadedTemplates to get an array of the templates and call your custom method.
repeater = event.source.parent.getComponent('Template Repeater') repeater.loadedTemplates.test()
This worked. Although I think it should be ‘getLoadedTemplates’
See Scripting Functions:
You can use that too but it’s a method so the script will change to this
repeater = event.source.parent.getComponent('Template Repeater') repeater.getLoadedTemplates().test()