Skip to main content

Posts

Showing posts with the label Progress Bar

How to create Progress bar in your axapta app

you can use the following codes to add a progress bar.enjoy it. #avifiles SysOperationProgress simpleProgress = SysOperationProgress::newGeneral(#aviUpdate, 'Posting', 100); ; simpleprogress.setCaption('Please wait...'); simpleProgress.incCount(5); simpleprogress.setText(strfmt("Percent: %1"+'%', 5)); simpleprogress.update(true); //.... simpleProgress.incCount(1); simpleprogress.setText(strfmt("Percent: %1"+'%', 46)); simpleprogress.update(true);

Report Printing Progress Bar - SysPrintProgess

The code listed below details change to the SysReportRun class which causes the progress bar to display for reports called from menu items. This HAS NOT BEEN TESTED thoroughly, Edit: No longer overriding the send method, due to the potential to cause problems with the _newPageBeforeBody parameter. Instead, adding to the buildPrintRange method, seems to be called once per page on the reports I've tested with. ----Begin Code---- class SysReportRun extends ReportRun { ... Object ProgressForm; // Added ... } void run(boolean onlyReport = false) { ... if (runBaseReport.prompt()) { ProgressForm = this.createProgressForm(); // Added ProgressForm.init(); // Added ProgressForm.setNames(this.design().caption(), this.printerPrinterName()); // Added runBaseReport.run(); } ... } // Start - Override send method and modify as shown public boolean send(Common _cursor, int _level=1, boolean _triggerOffBody=TR...