web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Batch Job - Reset batch processing check mark

(0) ShareShare
ReportReport
Posted on by 107

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.6082.batch.jpg

*This post is locked for comments

I have the same question (0)
  • Brandon Wiese Profile Picture
    17,788 on at

    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.

  • AnkurBh Profile Picture
    107 on at

    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

  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    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
    }
  • AnkurBh Profile Picture
    107 on at

    Thanks!!

  • Kunal Mahajan Profile Picture
    60 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans