Monday, April 18, 2022

Hide the Batch tab in SysOperation dialog in both D365 & AX2012

Written the below code in controller class.

Way 1:

public static void main(Args args) {

    controller.parmShowDialog(false);//Hide the batch dialog

    controller.showBatchTab(false);//Hide the batch tab in dialog

    
    //controller.captionIsSet = false;

// controller.parmDialogCaption(isExcelUp ? "ExcelUpload" :"Manual");

}

Way 2:

public void postRun() { SysOperationDialog sysOperationDialog; DialogTabPage dialogTabPage; FormRun formRun; super(); sysOperationDialog = this.dialog() as SysOperationDialog; formRun = sysoperationDialog.formRun(); dialogTabPage = sysOperationDialog.batchDialogTabPage(); formRun.control(formRun.controlId(dialogTabPage.name())).enabled(false); }


Keep Daxing!!

No comments:

Post a Comment