Hi DELDYN 364,
To open the Sales Order form with filters applied based on user input from a SysOperation dialog, you can use the FormRun and Args classes in your service class. Here's a simplified approach:
FormRun
Args
public void process(SalesOrderFilterContract _contract) { Args args = new Args(); Query query = new Query(queryStr(SalesOrderQuery)); // Your custom query with filters // Apply filters from the contract QueryBuildDataSource qbds = query.dataSourceTable(tableNum(SalesTable)); qbds.addRange(fieldNum(SalesTable, CustAccount)).value(queryValue(_contract.parmCustAccount())); qbds.addRange(fieldNum(SalesTable, YourCustomField)).value(queryValue(_contract.parmCustomField())); qbds.addRange(fieldNum(SalesTable, SalesStatus)).value(queryValue(_contract.parmSalesStatus())); args.name(formStr(SalesTable)); // Sales Order form args.query(query); FormRun formRun = classFactory.formRunClass(args); formRun.init(); formRun.run(); formRun.wait(); }
SalesOrderQuery
SalesTable
This approach allows you to dynamically filter the Sales Order form based on user input without exposing batch processing.
Thanks and best regards,\ Daniele\ Note: This response was prepared with support from Copilot to ensure clarity and completeness.
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 Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 1,771
André Arnaud de Cal... 806 Super User 2025 Season 2
Sohaib Cheema 542 User Group Leader