January 10, 2013

How To Running Job From a Form in AX

For Example we wanna run a Job with name  "ImportOutsourceBasicSalary". So you must create a button and oferride method Clicked in this button by this code :
void clicked()
{
    TreeNode tr;
    XInfo xInfo = new xInfo();
    ;
    tr = xInfo.rootNode();
    tr = treeNode::findNode("jobs").AOTfindChild("ImportOutsourceBasicSalary");
    tr.AOTrun();
}

0 comments:

Post a Comment