About calculation variables [AX 2012]

Updated: March 18, 2011

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Unlike the modeling variables, calculation variables are invisible in the user dialog box. They can be used for various types of intermediate calculations in the product model, or to retrieve data from other parts of the system. For example, if a calculation must be performed by the product model, you can define calculation variables to handle the tasks. Calculation variables are created using the tabs in the upper pane of the Product model form. The tabs are described in the following table.

NoteNote

This information applies only to Product builder.

Tab page

Description

System

You can create system variables of the following variable types:

  • Transfer variable

  • BOM identification

  • Route identification

  • Lot ID

  • Item number

  • Configuration

  • Quantity

System variable of the Lot ID, Item number, Configuration, and Quantity types are useful for transferring information from the order line or the quotation line to the current item configuration.

All system variables can be used to transfer values between parent and child product models.

NoteNote

Create only one system variable of each type, except for Transfer variable.

Simple

Define calculation variables of the following types: Text, Integer, Real, and Enumerated text. Simple variables have no special functionality attached to them. They are used to hold calculation data.

Define variables using any Microsoft Dynamics AX extended data type, such as AccountNum, a data type intended to hold account numbers.

Data type

Define variables using any Microsoft Dynamics AX extended data type, such as AccountNum, a data type intended to hold account numbers.

Table

Define table variables. For example, this kind of calculation variable can be used within X++ code to handle any table defined in Microsoft Dynamics AX.

Class

Define class variables. For example, these variables can be used within X++ code to handle any class defined in Microsoft Dynamics AX.

Except for modeling variables, Simple and Data type variables are the most common variable types that are used in intermediate calculations and for building the logical conditions for the product model.

Table and Class variables are intended for users who have some programming experience. Their purpose is to allow the nodes for the product model, in the modeling tree, to handle Microsoft Dynamics AX tables and classes.


Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: