template dictionary scope?

Imported from previous forum

Is this a valid template? If so I would assume

Field2 - entry would be in “any” app type dictionary
Field3 - entry would be in “MyDictionary” - user defined dictionary

Field1 - ? Can some explain the template scope

(template name=“temp1” )
(string name=“field1” id=“1128”)
(copy value=“123” dictionary= “template”/)
(/string)
(string name=“field2” id=“35”)
(copy value = “123” dictionary = “type”/)
(/string)
(string name=“field3” id=“49”)
(copy value=“123” dictionary=“MyDictionary” key = 123 /)
(/string)
(template)

Your assumptions about Field2 and Field3 are correct with the addition that Field3 uses the key “123” for the dictionary entry.

Field1 uses a dictionary local to the template “temp1”. This means that an operator for a field named “field1” in any other template than “temp1” will not share the same dictionary entry. You should use dictionary=“template” when affinity is dependent on a particular template and not other templates.

Is this a valid template? If so I would assume

Field2 - entry would be in “any” app type dictionary Field3 - entry
would be in “MyDictionary” - user defined dictionary

Field1 - ? Can some explain the template scope

(template name=“temp1” ) (string name=“field1” id=“1128”) (copy
value=“123” dictionary= “template”/) (/string) (string name=“field2”
id=“35”) (copy value = “123” dictionary = “type”/) (/string) (string
name=“field3” id=“49”) (copy value=“123” dictionary=“MyDictionary” key =
123 /) (/string) (template)