2011-09-19 79 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'方法不起作用。 –