how to call a batch job class in x++

Dear all, I am using AX 2012 FP and I have created a batch job class for GL posting where respective GL should get posted I tried few code to call my Batchjob class in a form’s button but it is not working. any suggestions.

RunBaseBatch or SysOperation?

What “to call” means? Do you want to show the dialog, run your logic synchronously or to schedule a batch from code?

What does “is not working” means?

Next time, please try to describe your problem properly from the beginning.

HI Rohit,

The batch framework handles adding batch to the batch jobs list.

Please post your code and give more details of your issue.

When you click the button, what you are expecting to happen?