Set filters using JavaScript

You can change the effective filter of an existing Management view component during runtime by calling the setFilter(filter) method of this Management view component. The new filters are transferred as a string in the filter parameter.

Example

mv1.setFilter("TIME=2007&WERKS=1000");

The syntax is described in detail in the chapter on Filter parameters.

To reset an active filter, call the method with an empty string as an argument.

Example

mv1.setFilter("");

A filter set with JavaScript is overwritten by filters that are set using another Management view component or global filters and are based on the same dimension.