Template instance to pop up window pass parameters

Hello, I have a template with a button that opens a pop up window. I want each instance of the template to open up a pop up window and send its instance parameter.

I have heaterNumber as a parameter of the pop up window, and AAA as the template parameter. I don't get any errors but it always opens the same window even though there are many instances of the template with different template parameter..

Are you trying to open one instance of the popup per template instance? If so, you need to select the Additional Instance option.

Or are you trying to dynamically open a different popup window (not just selectTCsToAvg)

That's right! I did selected additional instances though and it's still not creating new ones for each instance of the template. they all seam to default to the one with the parameter as 1

New instance of selectTCsToAvg pop up per template instance. Want each pair to have the same parameter

Have you confirmed that each template is receiving the correct value where it is used? Add a label component and bind the label's value to the parameter.

Look for typos. Parameter names are case sensitive.

1 Like

Yes each template receives the parameter!

This may be a different problem:
I have checkboxes in the pop up window with this indirect tag binding
[default]XYZ/bHeater{2}ThermocouplesSelected[{1}]
{1} is set by the template repeater component. {2} is that parameter im passing from template instance to pop up window.

How do I verify the result of the indirect binding? because the tags don't change to true when I check the checkboxes.

Also, the checkboxes reset everytime i close and reopen the popup

Are you trying to pass live tag values to these popups? Popup parameters are one-way snapshots. You can't write back to the source through them.

For this task, you must pass tagpaths, not actual tag values, and use indirect binding (bidirectional) within the popup.

1 Like