DictField.name Method [AX 2012]

Returns the name of the field.

public str name(
   [DbBackend db, 
    int arrayindex, 
    FieldNameGenerationMode generationMode, 
    str tableAlias])

Run On

Called

Parameters

db
Type: DbBackend Enumeration
A DbBackend value that specifies the type of database backend; optional.
arrayindex
Type: int
An array index entry for the name to retrieve; optional.
generationMode
Type: FieldNameGenerationMode Enumeration
A FieldNameGenerationMode value that specifies the mode for generating the field name; optional.
tableAlias
Type: str
The alias for the table; optional.

Return Value

Type: str
The name of the field.

The following example shows the retrieval of the name of the field.

DictField df; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
if (df) 
{ 
    print df.name(); 
}

Community Additions

ADD
Show: