Showing posts with label Progress bar. Show all posts
Showing posts with label Progress bar. Show all posts

Tuesday, January 8, 2019

Progress bar for lengthy operation on data source execute query in ax



Write this following method any on class:

Public static client SysOperationProgress showWaitDialog(str _text = "Extracting record for you, please wait...")
{
    #AviFiles
    SysOperationProgress waitDialog;

    waitDialog = new SysOperationProgress(1, true, strLen(_text));

    waitDialog.setCaption("Processing...");
  //  waitDialog.setTotal(100);
    waitDialog.setCount(1);
    waitDialog.setAnimation(#AviStopWatch);
    waitDialog.setText(_text);

    return waitDialog;
}



Call from datasource executequery() method:

public void executeQuery()
{
   SysOperationProgress waitdialog;
   ;
   waitdialog = global::showWaitDialog();  // startLengthyOperation();
   super();
   waitdialog.hide();  //  endLengthyOperation();
}

Sending Email using X++ Code in D365 F&O/ AX 7 in HTML fomat

  I was just researching on the emailing capabilities in D365 and found that SysINetMail, SysMailer and some of the smmOutlook classes are d...