Skip to main content
Skip table of contents

setting() Macro

Syntax

set anotherValue = setting("aName", aValue);
set anotherValue = setting("aName", aValue, "password");

Semantics

By using the setting() macro, you can specify literals that are global to the xUML service and configurable. The name-value pair can be overridden on the deployed service.
If the setting macro is used to define passwords, specify a third parameter "password". Now, the value of this setting will be hidden in the administration interface.

Substitutables

aName

String literal.  

aValue

A literal value of base type.

Examples

NONE
set x = setting("My setting", "abcd");
set x = setting("My setting", 5);
set x = setting("My setting", true);
set x = setting("My setting", "{{a_global_setting_variable}}");
set x = setting("My password setting", "secret", "password");

Related Pages:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.