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..
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
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.
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
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.
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.)
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.
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