TreeNode.AOTcompile Method [AX 2012]

Compiles this node and its subnodes.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          public boolean AOTcompile(
           [int flag, 
            boolean forceNoXRef, 
            boolean fastMode])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean AOTcompile(
           [int flag, 
            boolean forceNoXRef, 
            boolean fastMode])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void AOTcompile([int flag, boolean forceNoXRef])

  Microsoft Dynamics AX 2012 (FPK)
          public void AOTcompile([int flag, boolean forceNoXRef])

  Microsoft Dynamics AX 2012 (SYS)
          public void AOTcompile([int flag, boolean forceNoXRef])

Run On

Called

Parameters

flag
Type: int
An integer that indicates whether output should be sent to the message box. If the value 1 is passed, no output is sent to the message box. The default value is 0. This parameter is optional.
forceNoXRef
Type: boolean

fastMode
Type: boolean

The following example compiles every form element in the application.

#AOT 
static void myJobAOTcompile(Args _args) 
{ 
    treeNode treeNode; 
 
    treeNode = TreeNode::findNode(#FormsPath); 
    treeNode.AOTcompile(); 
}

Community Additions

ADD
Show: