Hi guys,
I’m having a problem with my events on buttons and similar things.
I had this script working correctly, but all of a sudden it stopped working and now I get this message.
I’m using Ignition 8.1.41.

Any help is much appreciated, as otherwise I’ll have to change the name of a large number of tags…
Best regards
Hm, I’m surprised this used to work.
I would transform your line like so, and see if it works:
self.view.custom['udt_modo_1']['Modo_1-C1_Ciclo_N-Modo'] = False
The error basically says that the dashes you have in your line are interpreted as subtraction signs, which definitely makes sense.
4 Likes
That’s what I thought. The funny thing is, if I select the tag using the “Browse Properties” button, it automatically builds the path as shown.
Anyway, the suggestion you made seems to have worked.
Now I know not to use dashes in tag names in the future.
Thanks!
1 Like
I think the take away should instead be not to use UDT Type params. They cause more headaches than they're worth. I use both spaces and dashes (occasionally) in my tag names with no issues