This documentation is archived and is not being maintained.
fieldId2PName Function [AX 2012]
Updated: November 21, 2009
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Retrieves the printable name of the field specified by a table ID number and a field ID number.
str fieldId2PName(int tableid, int fieldid)
|
Parameter
|
Description
|
|
tableid
|
The ID number for the table.
Note
Use the tableName2Id function to specify the ID of a table.
|
|
fieldid
|
The ID number of the field.
Note
Use the fieldName2Id function to specify the ID of a field.
|
static void fieldId2PNameExample(Args _arg)
{
str name;
tableid _tableId;
fieldid _fieldid;
;
_tableId = tableName2Id("Address");
_fieldId = fieldName2Id(_tableId, "Name");
name = fieldId2PName(_tableId, _fieldid);
print name;
pause;
}
Announcements: To see known issues and recent fixes, use
Issue search in
Microsoft Dynamics Lifecycle Services (LCS).