Page History
...
Consider a report that is defined by the following 3 commands:
| No Format | ||
|---|---|---|
| ||
DEF_HEAD NAME(#HEADING) FIELDS(#COMPANY) DEF_LINE NAME(#DIVSALES) FIELDS(#DIVNAM #PRODNO #PRODES #QUANTITY) DEF_BREAK NAME(#DIVTOTAL) FIELDS(#DIVQTY) TRIGGER_BY(#DIVNAM) |
If all lines were selected for display by the report design facility and the default of 1 used for the "cycle" and "repeat" values the image might look something like this:
| No Format | |
|---|---|
|
...
|
...
______________________________________________________________ |
...
Company XXXXXXXXXX
...
...
Divn
...
Name Product Description Quantity
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
...
Division total 99999.99
...
/ \ | Company XXXXXXXXXX | | | | Divn | | Name Product Description Quantity | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | | | Division total 99999.99 | | | \______________________________________________________________/ |
...
If the "repeat" value associated with the DEF_LINE command was set to 3. The report image would be enhanced to look like this, which is closer to what the report will look like when it is actually printed:
| No Format | ||
|---|---|---|
| ||
______________________________________________________________ |
...
Company XXXXXXXXXX |
|
Divn |
Name Product Description Quantity |
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 |
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 |
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 |
|
Division total 99999.99 |
|
/ \ | Company XXXXXXXXXX | | | | Divn | | Name Product Description Quantity | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | | | Division total 99999.99 | | | \______________________________________________________________/ |
Note how the DEF_LINE command image is repeated 3 times.
If the "cycle" value was set to 2 and the "repeat" value associated with the DEF_LINE command was set to 3. The report image would be enhanced to look like this, which is even closer to what the report will look like when it is actually printed:
| No Format | ||
|---|---|---|
| ||
______________________________________________________________ |
...
Company XXXXXXXXXX
...
...
Divn
...
Name Product Description Quantity
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
...
Division total 99999.99
...
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99
...
...
Division total 99999.99
...
/ \ | Company XXXXXXXXXX | | | | Divn | | Name Product Description Quantity | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | | | Division total 99999.99 | | | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXX 99999.99 | | | | Division total 99999.99 | | | \______________________________________________________________/ |
...
Note how the DEF_LINE and DEF_BREAK command are subjected to 2 emulated report cycles, and the DEF_LINE command is repeated 3 times every time it occurs.