Close Form On A Timer

Return To AX Content

//Set form Close after certain time
this.setTimeOut(identifierStr(close), #TimeOut)

Create a table
//Returns the Table ID after creating the table

public int createTable(str tableName = 'TestTable')
{
// declaration of variables
treenode tNode, child;
int tableId = -1;
;
// Find Table node in the AOT
tNode = infoLog.getAOTRootNode();
tNode = tNode.AOTfindChild('Data
Dictionary').AOTfindChild('Tables');

// Make sure table doesn't exist already
child = tNode.AOTfindChild(tableName);

if (child)
{
child.AOTdelete();
}

// add a table and return the Table ID

tableId = tNode.AOTadd(tableName).applObjectId();
tNode.AOTsave();
tNode.treeNodeRelease();
tNode = null;

return tableID;
}

Return To AX Content