Notifications
Announcements
No record found.
In batch job dialog box, is there a way to reset the "Batch Processing" check mark? Instead of remembering the last value, it should be set to default.
*This post is locked for comments
For a specific class, or in general across the entire system?
For a single class, you can override the .allowSaveLast() option to return false, and none of the parameters will be persisted to SysLastValue, which should include the Batch processing checkbox. The class will then call .initParmDefault() each time it opens.
Another approach might be to alter the way pack()/unpack() work for a class that extends RunBaseBatch, since the super() calls in both cases are working with the Batch processing checkbox.
If instead you're looking to change that behavior system-wide, that's a deeper change.
I need the change for specific class.
I override the allowSaveLast method and the method only return false.
But batch processing check mark remains the same.
Can you elaborate this way or the pack/unpact way
My bad. The .allowSaveLast() method only controls the parameters for your class directly, not the Batch parameters.
I tried this in my testing environment and it seems to work. After the super() in the .getLast() method on your class, you can set the Batch processing to false directly in code.
public void getLast() { super(); this.batchInfo().parmBatchExecute(false); // reset Batch processing to false }
Thanks!!
You could even access batchInfo class through your current controller object and set your batch parameters manually through parm method in that class. Following is the code line:
controller.batchInfo().parmBatchExecute(false);
parmBatchExecute method sets the batch parameter to true/false. It accepts boolean value.
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