I’m trying to figure out how to set properties in new UDT instances. My UDT, ‘sofcReads’, has two string parameters. It’s easy enough to create the tags from code I found on another post. Here’s my code:
ComplexTagDefinition newInst = new ComplexTagDefinition(this.referenceList.get(i),TagType.UDT_INST);
newInst.setAttribute(TagProp.UDTParentType, new BasicTagValue(“sofcReads”)); context.getTagManager().addTags(TagPathParser.parse([default]sofcReads/sofc1/"),Arrays.asList((TagNode)newInst),CollisionPolicy.Overwrite);
However, I haven’t been able to figure out how to set my parameter values. Any suggestions would be appreciated.
Thanks!