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. For more information about The Sample Outdoors Company samples, see Sample Reports and Packages.

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. From the Toolbox tab toolbox tab, 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.