Notifications
Announcements
No record found.
I need to force in any case the Batch mode processing for my custom class extends RunBaseBatch by code. The user can't change the execution mode.
RunBaseBatch
The shedule mode must only to be in Batch.It's possible?
I try to use in main method, before promt command these code line:
main
promt
className.mustGoBatch(); className.parmInBatch(true); className.doBatch();
BUT not work, I see the flag Batch processing switch off.
Thanks
*This post is locked for comments
I think it is doing part of exploiting the AX.. In my observation cannot be but you can able to customize runbatch. would?
You can use className.batchInfo().parmBatchExecute(true) to change the value, but if users shouldn't be able to change it, you probably shouldn't be showing it at all.
Hi DanielePax,
Try to add to a dialog() method next code:
this.batchInfo().parmBatchExecute(NoYes::Yes);
or it could be done in main() as well
className.batchInfo().parmBatchExecute(NoYes::Yes);
I meet same problem today and Martin and ievgen's answer get me out the the rid
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.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2