sMacro | (String) Macro expression, see Description of macro expressions in the PROMOTIC system. |
---|---|
sParams | [optional] (String) Additional parameters for macro expression evaluation. Entries are in the KeyVal format, for example "lang:cs;".
"lang:ss;" (optional) - Specifies national language for Macro expression $.text. Language is determined with a text identifier, e.g. "en", "de", "ru" etc. - see Fully supported languages in the PROMOTIC system.
If not set, then the present language of the application is used instead. See the "PmaRoot > Application > Main language of runtime" configurator. |
var sVal = Pm.EvalMacro("$.cfgfile('config/data/port1',0)");
var sTxt = Pm.EvalMacro("$.text('sys','userDesc')", "lang:en;");