Notifications
Announcements
ITMTmpCostReportTable tmp; ITMCostingRepCatReportDP icrc=new ITMCostingRepCatReportDP(); icrc.processReport();
public class ITMCostingReportDP extends SrsReportDataProviderPreProcessTempDB { public void processReport() { Query query; QueryRun queryRun; // 'The setConnection function was called with an invalid argument.' tmpShipCostReportTable.setConnection(this.parmUserConnection()); // ... }
public abstract class SrsReportDataProviderPreProcessTempDB extends SRSReportDataProviderBase implements SrsReportDataProviderPreProcessInterface { UserConnection uc; // ... public UserConnection parmUserConnection(UserConnection _userConnection = uc) { uc = _userConnection; return uc; } // ... }
public void init() { super(); ITMTmpCostReportTable tmp; ITMCostingRepCatReportDP dp = new ITMCostingRepCatReportDP(); dp.parmUserConnection(new UserConnection()); dp.parmDataContract(new ITMCostingReportContractReportingCategory()); dp.processReport(); // ... }
public class ITMCostingRepCatReportDP extends ITMCostingReportDP { // ... protected void initParameters() { contract = this.parmDataContract() as ITMCostingReportContractReportingCategory; =====> inventDimParm = contract.parmInventDimViewContract().parmInventDimParm(); // ... } // ... }
public void init() { super(); ITMTmpCostReportTable tmp; ITMCostingRepCatReportDP dp = new MyITMCostingRepCatReportDP(); dp.parmUserConnection(new UserConnection()); dp.parmDataContract(new MyITMCostingReportContractReportingCategory()) .parmInventDimViewContract(new InventDimViewContract()); var query = new Query(); dp.parmQuery(query); dp.processReport(); // ... }
public class ITMCostingReportDP extends SrsReportDataProviderPreProcessTempDB { public void processReport() { Query query; QueryRun queryRun; tmpShipCostReportTable.setConnection(this.parmUserConnection()); query = this.parmQuery(); QueryBuildDataSource qbdsPurchLine = query.dataSourceTable(tableNum(PurchLine)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ qbdsPurchLine.addOrderByField(fieldNum(PurchLine, PurchId), SortOrder::Ascending); queryRun = new QueryRun(query); // ... } // ... }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 679 Super User 2025 Season 2
André Arnaud de Cal... 429 Super User 2025 Season 2
Martin Dráb 264 Most Valuable Professional