Спасибо! Действительно проще.
После моего кода, таблицы остаются не синхронизированными:
PHP код:
public void run()
{
UtilIdElements utilIdElements;
TreeNode treeNode;
TreeNodeIterator it = new TreeNodeIterator();
str propertyStr;
Application application = new Application();
;
treeNode = TreeNode::findNode("\\Data Dictionary\\Tables");
it = treenode.AOTiterator();
treeNode = it.next();
while(treeNode)
{
treeNode.AOTrestore();
if(strScan(treeNode.AOTname(),'sys',1,100))
continue;
if(strScan(treeNode.AOTname(),'DEL',1,100))
continue;
if(strScan(treeNode.AOTname(),'xRef',1,100))
continue;
propertyStr = treeNode.AOTgetProperties();
if(createdBy)
propertyStr = this.updateTreeNodeProperties(propertyStr,'CreatedBy');
treeNode.AOTsetProperties(propertyStr);
treeNode.AOTsave();
application.dbSynchronize(SysTableBrowser::treeNode2TableId(treeNode));
treeNode = it.next();
}
}