我想得到所有的表名,而创建的person不是"-AOS-“(Dynamics )。在这段代码中,我只知道谁在表中创建了第一行:
for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++)
{
tableId = dict.tableCnt2Id(tablecounter);
common = new DictTable(tableId).makeRecord();
select common where common.createdBy !="";
if(common)
{
info(strFmt('%1---%2',common.createdBy,dict.tableName(common.TableId)));
}
}发布于 2014-12-02 15:54:18
您可以尝试对SysModelElement和SysModelElementData表进行扫描。
SysModelElement me;
SysModelElementData med;
while select firstOnly10 me
where me.ElementType == UtilElementType::Table
exists join med
where med.ModelElement == me.RecId
&& med.createdBy != '-AOS-'
{
info(me.Name);
}发布于 2014-12-03 09:44:29
您还可以使用项目筛选器(可能不如直接SQL查询的速度快,但取决于您的需求是否更可行)。

https://stackoverflow.com/questions/27251918
复制相似问题