[BUG-14793, 14794]Parameters in UDTs / Find and Replace

#1

I have UDTs created that will be used for a variety of OPC tags that need to have parameters in the OPC tag path. I created a type by manually dragging the tag from the OPC server, to create the structure, into the Data Types, but it has specific parameters in place since it was already created. I am trying to place four parameters I need to pass through to it in the tag path by using search and replace, but every time I tried using that, it says it successfully replaces them, but nothing happens (this could be a bug in itself).

So once that didn’t work I exported the UDT and used a find and replace in the json file in a text editor, then saved it, and imported the UDT back and the parameters are in place in the OPC path. However, when I create a new instance of the UDT, and put the parameters in, the OPC path includes {“parameter”} instead of filling it in with the defined value.

0 Likes

#2

Sorry for the delayed response. I am able to replicate both issues and they do appear to be separate issues. I’ll get internal tickets written up for these.
As for a workaround, import your UDT like you did before with the json edits. Then open the OPC tag and click the binding icon on the OPC Item Path. It should show a small menu with one of the options being “Edit…” Clicking that should resolve the parameters as part of an expression. Then all you’d have to do is click Commit and that should fix it.

0 Likes