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.
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.
-
Click the Toolbox icon , 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.