I guess I have found a regression in the system.tag.editTag method.
Since version 7.9.4, i cannot override properties in a nested child UDT. I have made a parent UDT, containing a child UDT. Each one contains a simple integer value. (See joined files)
On a 7.9.5 (and on 7.9.4 also I guess), I can override the value at the root of the Parent UDT, but not the other ones.
The exact same UDT and code works perfectly on a 7.9.3 (all values can be overriden)
The code is executed from the Script Console, in the Designer (not from a Vision Client). I also disabled the tag permission “Tag Editing” (just to be sure).
Steps to reproduce:
Import Enfant.xml
Import Parent.xml
Instanciate a Parent in root directory. Name it “testTag”
Run the script.
I have had problems with overriding parameters as well with editTag. I wasn’t aware it was a version thing. My workaround has been to only use addTag. If the tag exists, remove it and recreate. Thanks for pointing that out.
I event found any valid workaround for that (except deleting the tag and recreate it).
Howerver, I recently got updated by the support that this problem will be corrected for a future version (surely 7.9.8).
I have had success in updating nested UDT subtag properties with editTag, but only for nested UDTs that are one level deep. It seems the function doesn’t behave well with tags that are under 2 or more levels of UDTs.