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.

NoteNote
Use the tableName2Id function to specify the ID of a table.

fieldid

The ID number of the field.

NoteNote
Use the fieldName2Id function to specify the ID of a field.

The name of the 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).

Community Additions

ADD
Show: