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

I'm passing the tag path. And I indeed has bidirectional unchecked. Now, the label in the pop up shows the parameter passing correctly, but it seems like it's not applied to the checkboxes in the template repeater? Any pop up writes to the same array with parameter = 1.

So pop up -> label, the parameter makes it, but pop up -> template repeater it doesn't

The checkboxes need the bidirectional indirect tag binding. Is that where you have that binding?

yes! that is good now. i can write to the tag. but any instance of the pop up writes to the same tag

Sounds like your tag path passing isn't reaching your popup's root container. Consider showing the Script Editor tab from your navigation.

It does reach it because i have a label in the container, which is different from pop up to pop up

You'll have to share more, as we cannot track how your data is flowing in your template or your popup. Do you have labels in both your template and your popup showing the tag paths? Are you sure your checkbox indirect tag binding is using the tag path showing in your label? (Show us that, perhaps.)



and the pop up has custom properties HeaterNumber.

Is this helpful?

That isn't passing a tag path, fwiw. You should reconsider that.

Your indirect binding is using two substitutions, but your popup nav is only supplying one of the necessary values. So TCNumber will be constant in the popup, holding the value last saved in the designer.

SCR number is provided by a template instance. (the value that passes to the label, but not the checkbox)
TCNumber is incremented by the template repeater.

Yeah, but nothing about your template will pass TCNumber to the popup. So of course it doesn't change.

TCNumber is not the issue, it does increment from the template repeater component. And I don't want it to be different from each pop up. It's the HeaterNumber in checkbox that is the same throughout pop ups but shouldn't be