How to program button in an embedded view

Hi , I need to configure button's 'onActionPerformed' to pass values to Tag for multiple breakers from the embedded view.
How can I do it? I create an embedded view as shown in the image. Need to configure it.

Thanks

button

Pass the tag path of the breaker into the repeater/embedded view as a parameter. (This is assuming you have a breaker UDT). Otherwise pass the path of the tag associated with this breaker.

Bidirectionally and indirectly bind the button to the associated breaker tag using the tag path that you passed in to the embedded view, or use a system.tag.writeBlocking call using the tag path if you need to use a script.

Take a look at indirect tag binding in the Inductive University videos or the user manual.

1 Like

Thank you very much. I worked

system.tag.writeBlocking expects the parameters as lists so the correct syntax is,
system.tag.writeBlocking([X1], [True])
I'm also assuming that X1 takes a Boolean rather than a string as in your code.

While system.tag.writeBlocking might work without the list brackets, that ability is undocumented and may break in a future version.

https://docs.inductiveautomation.com/display/DOC81/system.tag.writeBlocking

Tip: post code as per-formatted text, not pictures of code.

1 Like