How to get field label in dynamics ax 2012 using x++
display FieldLabel fieldLabel()
{
FieldLabel ret;
DictField dictField;
TableId tableId = tableNum(PurchLine);
FieldId fieldId = fieldName2id(tableId,"Field Name");
FieldLabel ret;
DictField dictField;
TableId tableId = tableNum(PurchLine);
FieldId fieldId = fieldName2id(tableId,"Field Name");
if(tableId && fieldId)
{
dictField = new DictField(tableId,fieldId);
ret = dictField.label();
}
return ret;
}
{
dictField = new DictField(tableId,fieldId);
ret = dictField.label();
}
return ret;
}
Comments
Post a Comment