Suppressing Lines and Linesets [ HP ALLBASE/BRW Reference Manual ] MPE/iX 5.0 Documentation
HP ALLBASE/BRW Reference Manual
Suppressing Lines and Linesets
HP ALLBASE/BRW lets you specify condition formulas which control when
lines and linesets are printed. Conditions use the Calculation Language
described in Chapter 15 ; see the section in that chapter called Rules
For Formulas and Conditions.
Suppress Line Conditions
For each line in a report you can define a condition formula that
expresses when that line is to be suppressed. Suppressing line
conditions only suppress printing of the line and does not affect other
parts of the report, as suppress lineset conditions can.
To suppress a line in a report
1. At the Define Lines screen, choose other keys until the Suppress
Line softkey is available. Choose Suppress Line.
2. Answer the prompt for the appropriate line:
Suppress condition for Line :
3. At the Suppress Line screen, type the formula for the condition.
4. Press Enter.
Example: Suppressing a line
For example, to suppress an address line, use the condition:
address2 = " "
Before a lineset is printed, HP ALLBASE/BRW first checks that it will fit
completely on the page (unless you have defined that lineset split is
allowed). Note that suppressed lines are not counted in that check.
Standard items PAGE and LINE can have other values in the suppress line
condition than when they are printed in that line, because all suppress
line conditions in a lineset are evaluated before pagination and printing
of the first line.
Suppress Lineset Conditions
You can specify when a complete lineset is to be suppressed. The
suppress lineset condition formula suppresses:
* all lines in the lineset
* any record to be written to the lineset's output file
* column calculations to be counted, if this is a detail lineset or
a break footing lineset
* calculation of layout calculated items for this lineset
* values from the standard items prev-lset-level and prev-lset-type
To suppress a lineset
1. At the Define Breaks screen, choose Suppress Lineset.
2. Answer the prompt for the appropriate lineset level:
Specify lineset level (D,P,R,1-9): and type (H,F):
:
3. At the Suppress Lineset screen, type the formula for the
condition.
4. Press Enter.
Example: Suppressing a lineset
Suppose you want to suppress a detail line if there is no order. You
could define a suppress lineset condition as shown below.
order-no = NO_VALUE
Since the suppress lineset condition is evaluated first, all column
calculations and standard items page and line have the values from the
previous lineset.
Layout calculated items which use a column calculation, page or line as
an argument can have different values if they are used for the suppress
lineset condition or for another purpose in the lineset.
MPE/iX 5.0 Documentation