How to bind a component to tags dynamically?

Hello! I'm new to ignition and haven't been able to find exactly what I'm looking for so figured I'd ask here....

I have a table that contains a list of machines that is populated by an API call. In this table I have an onRowClick script that opens a popup window to display further details about the selected row. I created view params in the popup to pass the selected row info to the popup so that it can dynamically display the details.

I have some tags that reflect an online status about each machine in the table. I want to add a toggle switch that reflects the value of the Boolean tag to the popup. How can I dynamically bind the toggle's 'selected' value to its corresponding tag when the row is clicked?

Use an indirect tag binding on the toggle switch and send the tagPath(s) to the popup as params. Or some similar part of the path that uniquely identifies the tag(s) for each machine/row

2 Likes