Notifications
Announcements
No record found.
Assuming you have written your own controller class for the report, you should implement the 'preRunValidate' method on SrsReportRunController. See InventJournalTransTransferController.preRunValidate() for an example of implementation.
In the method, you can open a dialog to prompt the user, and based on their response, you can modify the return container.
Edit: Try to do what Martin suggested, it's way prettier. Didn't think that you might have a contract class 😀
protected boolean validate() { boolean isValid = true; ABC_GeneralLedgerReportContract contract; contract = this.getDataContractObject(); Query query = this.getFirstQuery(); QueryBuildDataSource queryBuildDataSource = query.dataSourceTable(tableNum(MainAccount)); QueryBuildRange queryBuildRange = queryBuildDataSource.findRange(fieldNum(MainAccount, MainAccountId)); if (!queryBuildRange) { isValid = warning(""); } return isValid; }
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 669 Super User 2025 Season 2
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 384 Most Valuable Professional