Dynamic button inside popup question

Good morning all!

Im new to ignition and stuck on an issue. What I have is a popup window that has a full UDT passed through it. All of my basic bindings etc work. (This is a valve). So I can see the valve name, description, status, etc get pulled through. However, I put a pushbutton in that will set a tag in the PLC to 1. I tested it with a static tag and had no issues. But I am unable to bind that script to the dynamic tag.

I attached two pictures for reference. I see that when binding the label I am just choosing a property. With the button scripting, there doesnt seem to be a way to tie to the dynamic aspect of the popup?


Passing the tag as a parameter makes a snapshot, not a live instance. Instead, pass a tagpath string into the popup and use an indirect bidirectional binding inside the popup to have a live and editable instance.

I'm not involved in any way, but it looks like you're trying to do something similar to this.

@pturmel - Thank you for the info that got me on the right path.
@zacht - Good eye! That is similar to what Im working on… Instead of trying to recreate every option of the PAX object, trying to just pull in the values that are needed for control and display since we use the excel online edits sheet for setting up every block - no need to make all the extra pages etc.

What I ended up doing instead was making a memory tag in my UDT thats value was linked to the custom property I use everywhere.

Then I went into the button and used script editor instead of set tag value. (Thank you Peter Lo)

Final code was:

value = 1
system.tag.writeBlocking([str(event.source.parent.valvenumber.DynamicTagTie) + “/OCmd_Close”], [value])