DictField.labelDefined Method [AX 2012]

Returns the value of the label property for the field.

public str labelDefined()

Run On

Called

Return Value

Type: str
The value of the label property for the table; an empty string if there is no label text for the table.

Unlike the label method, the labelDefined method does not return the extended data type label if the field is based on an extended data type and has no label defined for it.

The following example shows the retrieval of the defined label for a field.

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

Community Additions

ADD
Show: