tableId2PName Function
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Retrieves a string that contains the printable name (the label) of a table.
str tableId2PName(int _fieldid)
Parameters
Parameter |
Description |
---|---|
_fieldid |
The ID of the table. |
Return Value
The label for the table.
Example
static void tableId2NameExample(Args _arg)
{
str s;
tableid id;
;
// Get the ID for table name Address.
id = tableName2Id("Address");
print "ID for table name Address is " + int2Str(id);
// Get the name from the table ID.
s = tableId2Name(id);
print "Name for table ID " + int2Str(id) + " is " + s;
// Get the printable name from the table ID.
s = tableId2PName(id);
print "Printable name for table ID " + int2Str(id) + " is " + s;
pause;
}
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).