Hi guys, Today we see how to select the batch tab in dialog by default using SysOperation in Ax 2012 using X++.
In my Contract class I am not using any EDT. When I run Controller class the Dialog is Open with Empty general Tab. Like Below image.
For Avoiding this
Write Below method in Controller Class:
protected void dialogPostRun()
{sysOperationDialog sysOperationDialog;
DialogTabPage batchTab;
FormRun formRun;
super();
sysOperationDialog = this.dialog() as SysOperationDialog;
formRun = sysOperationDialog.formRun();
batchTab = sysOperationDialog.batchDialogTabPage();
formRun.selectControl(batchTab.control());
}