SysAutoRun.execConfiguration Method [AX 2012]

Enables modification of the default Microsoft Dynamics AX configuration keys.

Syntax

protected boolean execConfiguration(XmlNode _command)

Run On

Client

Parameters

  • _command
    Type: XmlNode Class
    The XML node to get the value from.

Return Value

Type: boolean
true if execution is successful; otherwise, false.

Remarks

The execConfiguration method is called when the <ConfigurationKey> tag is used in the configuration file when Microsoft Dynamics AX is started. For more information, see the SysAutoRun class.

Execution of this method is controlled by the SysAutoRun.execCommand method.

The <ConfigurationKey> tag has the following attributes:

  • name, specifies the name of the configuration key

  • enabled, specifies whether the key is enabled (enabled="true") or disabled

The execConfiguration method uses the ConfigurationKeySet class to modify the enabled/disabled status of each configuration key. Only the values specified in the configuration file are changed; other keys retain their default values.

Examples

The following example shows a possible use of the <ConfigurationKey> tag in the configuration file.

<Configuration> 
 <ConfigurationKey name="SysUserLog" enabled="true" /> 
 <ConfigurationKey name="PBA_AdvancedProductBuilder" enabled="false" /> 
</Configuration>

See Also

Reference

SysAutoRun Class