Template instance path binding

What I tried to do works but after giving it some thought I want to know how it works. I have different functions on a PLC that get loaded through recipe each function has its own template so we were changing the visibility depending on which function was active.

Then I thought of binding the template path to do a look up in a dataset depending on the function value it will return the path and it works but I started thinking the template parameters binding that I had originally are staying there they were not removed and each template type has different parameters. So I'm wondering how this happened and if I leave it will it break at some point when a different update is done?

So you're passing the same set of parameters to different Templates, and some of these Templates don't have the entire set?

I tried just now by creating two Templates, one with a parameters "a" and the other with "b". I embedded the first it into a Window and bound "a" to "1", then changed its template path and bound "b" to "2". I switched it back to the first template and the binding on "a" had disappeared. So I'm not sure how yours is working, but I would probably use a Template Canvas for this instead, although it's been a while since i've properly used Vision

1 Like

Yeah, I'm still thinking if I keep it this way it will break at some point. But it works for manually input template properties or bindings.