AppConfig

Syntax

AppConfig.method(...);
AppConfig.Settings.method(...);
AppConfig....method(...);

Description

The predefined AppConfig object allows MetaScript to access a configuration. Configuration values can be overridden in SystemRegistry and trace flags file (trace_flags.txt).
All values can be seen in Debugging Panel.

Methods

Method Returns Description
[define]( data )   defines default values.
[define]( name, value )   defines default values.
[get]( name )
[getValue]( name )
Object returns the value of name.
[set]( name, value )
[setValue]( name, value )
  sets the new value of name.

Example

Define enableSetupWorkflow test and production default values on AppConfig.Feautires.BaseSystem.

Another way to do the same

Several ways to set and get values

Overriding Values

Set or default values can be overridden in SystemRegistry or/and trace_flags.txt.

To override Features.BaseSystem.enableSetupWorkflow value in SystemRegistry run the following code:

To override this value in trace_flags.txt add the following line into trace_flags.txt

/~Features.BaseSystem.enableSetupWorkflow = 1

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.