Previous TopicNext Topic


How to conditionally hide an element

  1. Select the element to hide conditionally.
  2. In Property Editor, choose Visibility. The Hide Element option appears, as shown in Figure 7-19.
  3. Figure 7-19 Hide Element option in Property Editor

    Figure 7-19 Hide Element option in Property Editor
  4. Select Hide Element to specify that this element be hidden. If you want the element to always be hidden (an empty row, for example), this is all you need to do. If you want to conditionally hide the element, specify the condition as well.
  5. Select the report format to which you want to apply the hide condition:
    • To apply the hide condition for all report formats, select For all outputs.
    • To apply the hide condition for certain report formats, select For specific outputs. Also select this option if you want to apply different conditions, depending on the report format.
  6. Specify the hide condition:
    1. Open the expression builder.
    2. On the expression builder, create an expression that specifies the hide condition. Remember, you have to think about when you want to hide the element, not when you want it to appear.
    3. For example, to display the text message, Jumbo, when a loan amount exceeds $363,000.00, conditionally hide the text element using the following expression:
      row["ordertotal"] < 363000 
      
      This expression hides the text message when loan amounts are less than $363,000.00.
    4. Choose OK.
  7. Preview your report to test the conditional visibility.

(c) Copyright Actuate Corporation 2006

Previous TopicNext Topic