I can't figure out how to access part of a dataset I have within a UDT.
I am creating a template and instead of having a bunch of template parameters to set/write to I figured I would put these parameters into a dataset within the UDT tag itself and then only have to bind the UDT to the template. Within my template I want to bind certain things to the UDT properties including within the dataset. I can get access to the dataset itself but can't figure out how to get access to say column 5 within the dataset.
Here are screenshots of one instance of the UDT...
General tag configuration properties cannot use expressions that reference tag values or other property values. They can only reference UDT parameters (including the built-in UDT params).
Tag alarm properties can reference other tag values, but are only updated on alarm events--they are not general subscriptions.
The only general use of tag references, with ordinary change tracking causing refreshes, is within the expression of an expression tag. Full stop.
What you can do is write to these tag properties from scripts.
If I created a template parameter dataset within the template where everytime the template instance was opened the template parameter dataset was populated from the tag dataset itself would I be able to access that from within the template?
Are you not using a tag path parameter to your template to drive indirect binding within the template? If not, you are screwing up. If you are using a tag path, then you can indirect bind to any nested tag and/or tag property within the UDT.
In other words, it seems you are trying to go through your [expletive] to get to your elbow, when you could just touch your elbow.
(If you are trying to display all of this stuff in a table, take a look at the tags() function in my Integration Toolkit.)
Right. That was my next attempt. Do an indirect tag binding with the template parameter coming in as a string to complete the tag path. I do seem to be able to get to the parameters that way.