SysAutoRun.execAdjustGlobalTypes Method [AX 2012]

Allows modification of properties on global data types in Microsoft Dynamics AX.

Syntax

protected boolean execAdjustGlobalTypes(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 execAdjustGlobalTypes method is called when the <AdjustGlobalTypes> 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.

Global data types are extended data types that are likely that will be used in more than one company. For a list of these types, see the Adjust global types form (SysEDTSetup). Launch this form from Administration > Setup > System > Adjust global types.

The attributes available for the different data types are shown in the following table.

Attribute

Base data type that the attribute applies to

Description of attribute

length

String

Sets the StringSize property.

adjustRight

String

Sets the Adjustment property to Right.

displayLength

Real

Sets the DisplayLength property.

decimals

Real

Sets the NoOfDecimals property.

Examples

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

<AdjustGlobalTypes> 
 <AccountNum length="24" adjustRight="false" /> 
 <AmountMst displayLength="12" decimals="10" /> 
</AdjustGlobalTypes>

See Also

Reference

SysAutoRun Class