I’ve been trying to get more cozy with the template capabilities of Ignition and a need arose that I thought would be perfect for the Template Repeater. I made a template of labels to be filled by a periodically changing dataset. Everything seems to be working except that all my labels disappear right after they are printed to the screen . The template is just a collection of labels. Here is my script for the Template Repeater.
[code]s1c = event.source.parent.getComponent(“Schedule1Container”)
schedule = system.tag.read("[Client]schedule1").value
system.tag.write("[Client]schedule1count", schedule.rowCount)
tlist = s1c.getLoadedTemplates()
for index,template in enumerate(tlist):
template.getComponent(‘lblPartNumber’).text = schedule.data[0][index]
template.getComponent(‘lblQtyScheduled’).text = schedule.data[2][index]
template.getComponent(‘lblNote’).text = "Note: " + schedule.data[3][index]
[/code]
Thanks