Skip to Content
author's profile photo
Former Member

WAD 7: Hide Web Item depending on variable value

Hi,

I have two enterprise reports in a web template. The underlying queries have the same variable (calendar month). I want to achieve the following:

In case the variable is < 4: Show report A, Hide report B

In case the variable is >=4: Show report B, Hide report A

Any idea how to do this?

Best regards

Thomas

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on May 04, 2011 at 01:11 AM

    You should lookup how to use XPATH and Javascript combination. Xpath will let you query the value of the variable in Javascript and then you can use javascript to set the hidden property for the desired web item.

    Add comment
    10|10000 characters needed characters exceeded