Code node (form)
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Click Product information management > Common > Product builder > Product models. Select a product model line, and then click Open. In the Product model form, in the lower pane, right-click the Modeling tree node, point to New, and then select Code.
Note
This information applies only to Product builder.
Use this form to include X++ code in a product model.
Note
In a code node, write the X++ code as if you were writing the body of a method for a Microsoft Dynamics AX class. This means that all statements must end with a semicolon (;). You can also insert comments in your code by putting two slashes (//) in front of them.
This node type is intended for users who have some experience in X++ programming. For a description of the X++ language, see the Microsoft Dynamics AX Developer’s Guide.
Navigating the form
The following tables provide descriptions for the controls in this form.
Buttons
Button |
Description |
---|---|
Test |
Test the code syntax. |
Fields
Field |
Description |
---|---|
Code |
X++ code that should be run, or for IF nodes, the condition that the IF node should be tested for. You must state the condition as a logical expression for IF nodes. |
Description |
A short description of the purpose of the code. |
See also
About the product modeling tree
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).