DictField.aliasFor Method [AX 2012]
Returns the ID of the alias field, if the field is an alias for another field.
public FieldId aliasFor()
Run On
CalledReturn Value
Type: FieldId Extended Data TypeThe ID of the alias field for the field; 0 (zero) if the field is not an alias for another field.
The following example shows the retrieval of the alias field for a field.
DictField df;
fieldId fId;
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum));
if (df)
{
fId = df.aliasFor();
if (0 != fId)
{
print (strfmt("Field alias: %1", fieldid2name(tablenum(CustTable), fId)));
}
}
Community Additions
ADD
Show: