fieldId2Name Function
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Retrieves a String that represents the name of a field specified by a table ID number and a field ID number.
str fieldId2Name(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. |
Return Value
The name of the field.
Remarks
To return a printable version of the field name, use the fieldId2PName Function.
Example
The following example sets fn to the name of the field in the Customer (CustGroup) table whose field ID is 7.
static void fieldId2NameExample(Args _arg)
{
str fn;
;
fn = fieldId2Name(tableName2Id("Customer"),7);
}
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).