static void CreatingTable(Args _args)
{
TreeNode treeNode;
AOTTableFieldList fieldList;
AccountNum AccountNum;
int field;
;
//Finding the path for tables from the Data Dictionary...
treeNode = TreeNode::findNode(@'\Data Dictionary\Tables\');
treeNode.AOTfindChild('Tables');
//Adding the new table...
treeNode.AOTadd('Axapta');
//Finding the new table which added in the above code...
treeNode.AOTfindChild('Axapta');
//adding the fields in the new created table...
for(field = 1 ; field <= 10 ; field++)
{
fieldList = treeNode.AOTfindChild('Axapta').AOTfindChild('fields');
fieldList.addString('field');
}
}
No comments:
Post a Comment