fieldId2PName Function
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)
Parameters
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. |
Return Value
The name of the field.
Example
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;
}
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).