How to use a custom control with JavaScript to hide and show a filter panel in IBM #Cognos Analytics 11.0.7+

Blog Home > How to use a custom control with JavaScript to hide and show a filter panel in IBM #Cognos Analytics 11.0.7+

How to use a custom control with JavaScript to hide and show a filter panel in IBM #Cognos Analytics 11.0.7+

Filters (prompts) tend to take up a lot of valuable space on a report. It is often useful to provide users with the ability to hide and show these filters in a panel. There is a new sample in IBM Cognos Analytics 11.0.7 titled Global sales that demonstrates how to use a Block, a Custom Control, and JavaScript to hide and show a panel of filters (Year and Product Line) at the top of the report:

filter_panel_blog

Here is a document that explains step-by-step how we created the sample report.


Samples

There is a set of samples for Scriptable Reports. These sample files are installed (but not configured or imported) with the product in an Easy installation, and are an option in a Custom installation. You can find them here: <Cognos installation directory>\samples\JavaScript\

For your convenience, you can also obtain the samples here. Download the following three files:
1. Follow these setup instructions. If you are using a Gateway, please read Step 6 carefully!
2. Unzip and place these javascript files.
3. Import this report deployment.


Related posts:


Please visit our IBM Business Analytics Support channel on YouTube.