blog for Dynamics Axapta

Archive for December, 2010

Find the Table Name in Dynamics Ax 2009

Hi,

Here i write a sample code to find the Table Name of Ax Tables using the TableId.

 

static void findTables(Args _args)

{

Dictionary            dictionary;

TableId                                  tableId;

tableName         tableName;

;

 

dictionary            =             new Dictionary();

// tableId             =             dictionary.tableNext(0);

tableId                  =             359;       //366; //62;

tableName         =             dictionary.tableName(tableId);

 

info(strfmt(“%1 – %2”,int2str(tableId), tableName));

 

//while (tableId)

//{

// tableId = dictionary.tableNext(tableId);

// tableName = dictionary.tableName(tableId);

//}

 

}

 

Thank You,

Vasanth Arivali.