2011-09-19 2 views

답변

3

setTmp 메서드를 사용하여 레코드 버퍼를 임시로 표시합니다. insert 메서드에서 수행 된 다른 업데이트를 방지하려면 insert 메서드 대신 doInsert 메서드를 호출해야합니다.

두 번째 레코드 버퍼가 같은 임시 테이블을 참조하려면 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' 방법을 사용하여 :

이 테스트 작업은 사용하는 방법을 보여줍니다. –