Firstly, I make a vision template, with only one check box in it. and defined two Template Parameters which bidirectional binding to the Text property and Selected property of this check box.
Then I make a template repeater in a vision window, for this template repeater, I change the template path to above template, change repeat behavior to Dataset mode; binding the Template Parameters to a dataset which is a customer property of that window’s root container. This dataset is with only two columns, one column is the number to indicate the check box text, and the other column to indicate the check box is selected or not. I set them all unselected at beginning, Then in preview mode, I selected some of the check box, I thought the dataset will also changed, but they are not changing.
Seems the dataset can only be passed in a single direction from template repeater to template, when it is changed in template, it will not change back to template repeater.
I can only use script to access the inner template to get the information I want.
templateRepeater = event.source.parent.getComponent('Template Repeater')
templates = templateRepeater.getLoadedTemplates()
for template in templates:
print 'text is ',template.getComponent('CheckBox').text, '; selected is ', template.getComponent('CheckBox').selected
`
I’m not sure if there is any other method to pass the information back from template back to template repeater.
![]()
