This has been bugging me for a few days, and I can’t seem to figure out what I’m doing wrong…
I have a single window with a dropdown and a template repeater on it. When a user selects an item from the drop-down, it sets a property (“id”). The template repeater’s templateParams property is bound to an SQL query that uses the “id” property to get properties for each template from a database.
The template has three key properties that are set as parameters for the template: LabelText and UnitText, which are each bound to a label’s text property, and “MeasValue”, which is bound to the text property of a text field. The template repeater sets these values with the database query.
My problem is that the text field seems to retain its old value even when I select a new item from the drop-down. The templateParams dataset refreshes fine and the labels in the template change values, but the text field doesn’t seem to pick up the value from the dataset unless the number of rows (number of templates) changes. If I have the same number of templates but with different values for the text field, the text field doesn’t refresh.
I’ve tried everything I can think of to get them to refresh and show new values, but haven’t been successful yet. Any suggestions?