Showing posts with label Batch tab. Show all posts
Showing posts with label Batch tab. Show all posts

Monday, November 18, 2019

Hide the batch tab in Dialog window in D365FO

1. Create UI builder class
2. Override the dialogPostRun method in UI builder class

protected void dialogPostRun()
{

SysOperationDialog  sysOperationDialog;
DialogTabPage         batchTabPage;
FormRun                   formRun;

super();
sysOperationDialog  = this.dialog() as SysOperationDialog;
formRun                   = sysOperationDialog.formRun();
batchTabPage          = sysOperationDialog.batchDialogTabPage();
formRun.selectControl(dialogTabPage.control());

}