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);
#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);