Report Studio

Hiding and Showing Objects

 

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.

To hide or show objects:

  1. Create a variable and define the condition that determines if the object is to be shown or hidden.
    Tip:
    Create a boolean variable to show and hide objects, as this type of variable has only two possible values.
  2. In the Insertable Objects pane, on the toolbox tab , drag the Conditional Blocks object to the work area.
  3. Click the conditional block.
  4. In the Properties pane, double-click the Block Variable property.
  5. Click Variable, click the variable you created, and click OK.
  6. Click the Current Block property and click Yes.
  7. In the Insertable Objects pane, drag the object you want to show or hide in 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. For more information see Adding a Page To a Report.

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.

 

Related Topics: