The simplest way to achieve this is by
SysDictField dict = new SysDictField(tableId, fieldId);
str label = dict.label();
Other way to get the label for any EDT, table or table field is :
//Get label of field
label = fieldPName(EmplTable, EmplId);
info('Field name: '+label);
//Get label of EDT:
label = new SysDictType(extendedTypeNum(EmplId)).label();
info('EDT name: '+label);
//Get label of table
label = tablePName(EmplTable);
info('Table name: '+label);
Comments
Post a Comment