Источник:
http://www.axaptapedia.com/Progress_Bar
==============
Summary: /* Introduction */
<div>== Introduction ==
A progress bar is a graphical representation of a job's progress and they are used extensively in the application. If a long running process displays a progress bar, the user can monitor the progress and can estimate the approximate time of completion. It is best practice to always display a progress bar during a lengthy process.
== Progress Bar within a batchable class ==
The RunBase framework has methods which will initialize the progress bar so that you can focus on coding the process.
// progress bar Runbase demo
public void run()
{
str text;
int percent;
int counter;
int64 progressTotal = 200; // hard coded for demo purpose (this is normally calculated)
;
this.progressInit("Processing", progressTotal, #AviFormLetter);
progress.setText("Item");
for (counter = 1; counter