You can hide and show objects in a report based
on a condition you define.
You can also specify that
an object should not be rendered based on a condition.
Tip: The Global Bonus Report sample report in the GO Data Warehouse
(analysis) package includes hidden objects. For more information about
The Sample Outdoors Company samples, see
Sample Reports and Packages.
Procedure
- Create a variable, and define the condition that
determines if the object is shown or hidden.
Tip: Create
a Boolean variable to show and hide objects, as this type of variable
has only two possible values.
- From the Toolbox tab , drag a Conditional Blocks object to the work area.
- Select the conditional block.
- In the Properties pane, double-click
the Block Variable property.
- In the Variable box, click the variable
you created and click OK.
- Set the Current Block property to Yes.
- From the content pane, drag the object to show or hide
to the conditional block.
For example, drag a data
item from the Source tab or from the Data
Items tab.
You may need to link the report page
to a query before you can add a data item to the block.
Results
When you run the report, the report objects to which you applied
the variable are visible when the condition is satisfied and invisible
when it is not.