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(); }