The Form Specification File

A form containing a progress bar is defined in the form specification file reportprog.per.

Form reportprog.per:
01 LAYOUT (TEXT="Report")
02  GRID
03  {
04
05        [f001                  ]
06
07        [ib                    ]
08
09
10  }
11  END
12 END
13
14 ATTRIBUTES
15 PROGRESSBAR f001 = formonly.rptbar, VALUEMIN=1,VALUEMAX=10;
16 BUTTON ib: interrupt, TEXT="Stop";
17 END
Note:
  • Line 05 contains the form field for the PROGRESSBAR.
  • Line 07 contains the form field for the interrupt action view.
  • Line 15 defines the PROGRESSBAR as FORMONLY since its type is not derived from a database column. The values range from 1 to 10. The maximum value for the PROGRESSBAR was chosen arbitrarily, and was set rather low since there are not many rows in the customer database table.
  • Line 16 defines the button ib as an interrupt action view with TEXT of "Stop".