Hide or show an object

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

  1. 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.
  2. Click the Toolbox icon The toolbox icon, drag a Conditional blocks object to the work area.
  3. Select the conditional block.
  4. In the Properties pane, double-click the Block variable property.
  5. In the Variable box, click the variable you created and click OK.
  6. Set the Current block property to Yes.
  7. 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.