Tuesday 24 June 2014

Select the batch tab in dialog by default using SysOperation controller class

Hi,
Many times we have use sysOperation framework without using any data contract. In that case, if you run the class to open the dialog you would see a blank tab. To select the batch tab by default just place this code in your 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());
}

5 comments:

  1. Good one. Helped me a lot.

    ReplyDelete
  2. Great post. Helped me a lot.

    ReplyDelete
  3. how can i set batch processing checkbox 'checked' by default

    ReplyDelete
    Replies
    1. Use your controller class.
      Call the following:
      - controllerClass.batchInfo().parmBatchExecute(NoYes::Yes);

      Delete