AX-3.6 and later versions support “nested lexicon values”. This means the value of a lexicon key can reference another key in either the same module’s lexicon file, or a different module’s lexicon file. Multiple levels of nesting are supported, as needed. This feature may be most used by NiagaraAX developers who are creating new modules that need lexicons.
The syntax for nested lexicon values is as follows:
{lexicon:moduleName:key} (if referencing a key in a different lexicon file), or
{lexicon:key} (if referencing a key in the same lexicon file)
For a multi-level example within the same (module) lexicon file, consider these key=value pairs in the “test” module’s lexicon:
fum.text={lexicon:foe.text} Fumfoe.text={lexicon:fie.text} Foefie.text={lexicon:fee.text] Fiefee.txt=Fee
In the example above, the value for fum.text resolves to “Fee Fie Foe Fum”.
This could be seen in a Px label widget using BFormat scripting syntax: %lexicon(test.fum.text)%
Copyright © 2000-2016 Tridium Inc. All rights reserved.