AX 2012AX 2009

Code Completion

Variable list

When you type code in Axapta Editor, AxAssist analyzes it and offers a list of suggestions. The list contains all available (defined) variables for current recognized element (class variables, datasources and corresponding tables, controls with property AutoDeclaration set to “Yes”). For operations like (“==”, “!=”, “=” and etc.) AxAssist determines type of the left operand and offers list of compatible variables.
In additional, for variables of “enum” type, list of values of enums is offered.
For example, ItemType::Item, ItemType::BOM, ItemType::Service are offered for enum ItemType.
If you type function call, AxAssist analyzes type of current parameter and offers list of compatible variables.

In Danish

In Russian

Variable names list

Variable names suggestion list appears after entering type and pressing space button.

Variable names suggestion with Ignored Prefix set to "MP_":

This feature can be configured in \Classes\DEV_AxAssistUserList\addVariableNamesList method.

Function SetVariableNameSuggestion definition:

void SetVariableNameSuggestion(int _nType, int _nApply, str _strPrefix, str _strType, str _strWholeName);

_nType - 0 - prefix, 1 - postfix.
_nApply - DEV_AxAssistVarType::ALL - apply to all objects, DEV_AxAssistVarType::Table - apply for tables only and etc.
_strPrefix - prefix or postfix string.
_strType - if not empty - this suggestion applied only for this type.
_strWholeName - if not empty - this string used like suggestion string. strPrefix is ignored.

Variable names list could be modified by user logic before suggestion will appear.
It could be performed in \Classes\DEV_AxAssistUserList\CheckVariableSuggestion method.

Name matching

This suggestion list base on AOT names.
The list contains all class, table, Extended Data Type and enum names including system types.

In Danish

In Russian

You can use Ignored prefix setting to exclude your company prefix from typing.
For example, you have company prefix for your objects "MP_".
Set Ignored prefix to "MP_":

Acronyms

Acronyms are short and simple abbreviations for symbols - typically the uppercase letters of a name. Type an acronym and AxAssist will find the symbol that you want. Acronyms let you type code with fewer keystrokes.

In Danish


In Russian


You can use Ignored prefix setting to exclude your company prefix from typing.
For example, you have company prefix for your objects "MP_".
Set Ignored prefix to "MP_":


See also: How to use your text as suggestion.

User list

User list allows adding customized suggestions into list. This list is sorted automatically.

Example:


See also: How to use your text as suggestion.

Real Time Analytics