2011-09-19 77 views

回答

3

使用setTmp方法将记录缓冲区标记为临时记录。如果您想避免insert方法中所做的任何其他更新,请记得调用doInsert方法而不是insert方法。

要有第二个记录缓冲区,请使用setTmpData方法参考相同的临时表。

这个测试工作说明了如何使用:insert`只`insert_recordset`上`

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); 
} 
+0

使用'skipDataMethods'方法不起作用。 –