Use Template Repeater

Template
image
Param of template :
image

Main Window:

What I want to do is when I change Value of temperature of dropdown list, value of Thermometer muste change.

For exemple on Main Window, if I choose Temperature = 50 value of all Thermometer must be 50

You'll need to change the "Repeat Behavior" from Count to Dataset so you can externally control more than one parameter:
image

That will let you set up a binding on "Template Parameters" to pass in a dataset where the column names would be Attente, nom, and num_motor, and the rows would be the values for each template you want.
image

Edit: If there's any parameters you don't want to have to control externally you can leave that column out of the dataset.

Thank you @Felipe_CRM but if I change "Repeat Behavior" to Dataset Template Repeater will be dynamic ?

If your dataset binding is dynamic then the Template Repeater will be dynamic as well. For that you'll most likely have to use a runscript() expression (or pturmel's Integration Toolkit) to build your dataset dynamically, or if you have a fixed number of rows you can just use a Cell Update Binding.

What are you saying is I need create a script and a will execute it on expression to get dataset ?
If yes what I will change to modify value of Thermometers on Template Repeater when I change value of Dropdown ?

You'd pass the value of Dropdown to your runscript() as an argument. That way, whenever it changes it would automatically re-evaluate the expression and generate a new dataset.

2 Likes

For this to work you'll need the correct parameters set up on your template. If i'm not mistaken, each column on your dataset will correspond to a different parameter and each row will correspond to each Template instance. I would try to mess with the Template Parameters dataset first, create the columns you'll need and change the values manually to see if they change and everything is set up correctly, then i would worry about how to change the parameters dynamically.
To change the parameters dynamically in this case i would use an onPropertyChange script on the dropdown that will monitor for changes in the selected option and then change the values on the same script.

1 Like