Create new filed in new Table with x++

Hi

I create new table while insert record ,For make this I override insert method.

When I insert new record new table with its Id create and save.But Also I want one int field and one string field in new table .How cadn do this? My insert method source code here:

public void insert()

{

#AOT

Name name;

NumberOf recordCount;

TreeNode treeNode;

SysDictTable sysDictTable;

;

super();

treeNode = TreeNode::findNode(#TablesPath);

//reeNode = treeNode.AOTfirstChild();

treeNode.AOTadd(“NewTable”+this.ID).applObjectId();

treeNode.AOTsave();

}

Thanks

I solved my problem ,Maybe help the other begınner developer so I want to share

Thanks

public void insert()

{

#AOT

Name name;

str tname;

NumberOf recordCount;

TreeNode treeNode,trv;

AOTTableFieldList fieldnode;

str s;

;

super();

treeNode = TreeNode::findNode(#TablesPath);

treeNode.AOTadd(“NewTable”+this.ID).applObjectId();

treeNode=treeNode.AOTfindChild(‘NewTable’+this.ID);

treeNode.AOTcompile(1);

treeNode.AOTsave();

treeNode.AOTfindChild(‘NewTable’+this.ID);

fieldnode=treeNode.AOTfirstChild();

fieldnode.addString(‘Namee’);

fieldnode=fieldnode.AOTfindChild(‘Namee’);

//tn=treeNode::findNode(@"\NewTable"+this.ID);

//tname=tn.treeNodeName();

}