AX使用临时表作为数据源

public void run
{
    CustTable custTable, tmpDatasource;
;
    // Ensure RLS is used
    custTable.recordLevelSecurity(true);

    while select custTable
    {
        tmpDataSource.data(custTable);
        tmpDataSource.insert();
    }

    formDataSource.setTmp();
    formDataSource.checkRecord(false);
    formDataSource.setTmpData(tmpDatasource);

    super();
}
posted @ 2011-03-31 10:32  perock  阅读(404)  评论(0编辑  收藏  举报