How to running Job from a Form

时间:2023-01-13 20:03:03

For Example we wanna run a Job with name  "FAN_TableList_CSV".

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("FAN_TableList_CSV");
    tr.AOTrun();
}