Axapta 运行时的临时表
是否可以在ax 2009的运行时将表设置为临时表?使用Axapta 运行时的临时表,axapta,x++,Axapta,X++,是否可以在ax 2009的运行时将表设置为临时表?使用setTmp方法将记录缓冲区标记为临时表。如果要避免在insert方法中进行任何其他更新,请记住调用doInsert方法而不是insert方法 要使第二个记录缓冲区引用同一临时表,请使用setTmpData方法 此测试作业说明了以下用途: static void TmpTest(Args _args) { CustTable custTable, custTable2; ; custTable.setTmp();
setTmp
方法将记录缓冲区标记为临时表。如果要避免在insert
方法中进行任何其他更新,请记住调用doInsert
方法而不是insert
方法
要使第二个记录缓冲区引用同一临时表,请使用setTmpData
方法
此测试作业说明了以下用途:
static void TmpTest(Args _args)
{
CustTable custTable, custTable2;
;
custTable.setTmp();
custTable.AccountNum = "123Tmp";
custTable.Name = "Temporary?";
custTable.doInsert();
custTable2.setTmp();
custTable2.setTmpData(custTable);
select custTable2 where custTable2.AccountNum == "123Tmp";
info(custTable2.Name);
}
使用
skipDataMethods
方法在insert
上不起作用,仅在insert\u记录集上起作用。