tableNum Function [AX 2012]

Updated: August 18, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the table ID of the specified table.


int tableNum(str table)

Parameter

Description

table

The table for which to retrieve the table ID.

The table ID of the specified table.

This function is a compile-time function, which is a metadata assertion function. Compile-time functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.

The following example sets the tableID variable to 77, which is the ID of the CustTable table.

static void tableNumExample(Args _args)
{
    int tableID;
    ;
    
    tableID = tableNum(CustTable);
    Global::info(strfmt("%1 is the table ID for the CustTable table.", tableID));

}
/****Infolog Display
Message (11:15:54 am)
77 is the table ID for the CustTable table.
****/

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: