Just to clarify, when you say “sub tags”, do you mean the blue stuff, like “Value”, “Documentation”, “Name”, “Quality”, etc?
If so, then the way that I would go about it is to pass in the tagpath to the alarm tag, rather than passing in the tag itself. Then, do indirect bindings to all of the properties you need.
One more thing: you might want to run some tests with AlarmActiveUnackCount just to make sure it does what you think it does. If you’re looking for the number of active and unacked alarms in general, then you will probably have to do something fancy with system.alarm.queryStatus(…).
Excellent! Glad you got it working. One more tip, even though it sounds like you’ve got it figured out.
If you plan to show several instances of this template on the display at once, then since you’re passing in a large UDT, it may end up being slow. When you pass a UDT into a template, the template subscribes to all of the parts of the UDT even if they aren’t being used, so it can result in slow load times on the client.
That’s the reason I suggested using the tag path. this way would mean you make a string parameter and pass in the path to the base UDT instance, and then do indirect bindings to all of its parts.
Anyway, test out what you’ve got and if it works well, then no problem. But if you encounter a lot of client slowness, then this is something you can try.
[quote=“zacslade, post:4, topic:14687”]
When you pass a UDT into a template, the template subscribes to all of the parts of the UDT even if they aren’t being used, so it can result in slow load times on the client.[/quote]
FWIW, this is the reason I never use UDT parameters.
The easiest way to write back is to use the bidirectional checkbox on an indirect tag binding. (-:
You’ll have to use a custom string property to contain the dynamic part of the tag path and reference it in the indirect tag binding, in lieu of using the tag() expression function.
I was going down a rabbit hole making it a lot more complicated that I needed to. Way to many options with this software. Just allows me to get in trouble.