Integrate global filter components

As for Performance Dashboard, you can use global filters to provide extended analysis options in Management views.

Only one filter may be set for each criterion.

Example: Global filter in a Management view

Linked Picture File Template_support_manuals_APD

Freely selectable dimensions are used as the filter criteria. By setting a global filter for a particular dimension in a displayed Management view, the analysis data for all affected Management view components (queries) is queried and displayed again.

A global filter for a Management view is configured in 2 steps:

  1. Adaptation of the *_conf.xml file used by the Management view (see also chapter on XML elements in dashboard configuration file *_conf.xml)
  2. Adaptation of the MV structure file *.html (see also chapter on MV structure file *.html)

Adaptation of the XML configuration file *_conf.xml

The XML configuration is described in the chapter on Set global filters.

Example (extract from _default_managementview_conf.xml)

...

<filterlist>

<filter name="WERKS" type="dynamic"
displaytext_dynamic="key_description"
displaylevel_dynamic="only_first">

<description language="de" name="Werk"/>

<description language="en" name="Plant"/>

</filter>

<filter name="TIME" type="time">

<description language="de" name="Zeit (variabel)"/>

<description language="en" name="Time (variable)"/>

</filter>

</filterlist>

...

Adaptation of MV structure file *.html

The use of global filter components must be declared in the Management view structure file as the showMVFlexFilterComponent JavaScript method.

This is done in the following way:

...

<div id="GlobalFilterDiv" style="position:absolute;
top:0px; z-index:1; width:100%;">

<script language="JavaScript" type="text/javascript">

showMVFlexFilterComponent("GLOBAL_FILTER");

</script>

</div>

...

For each Management view component for which you want to use the global filter settings in the Management view display, the value GLOBAL_FILTER must be transferred for the filterMasters parameter in your showMVFlexComponent method.

If you want to use the global filters from an existing _conf file for a dashboard, e.g., for a Management view integrated into a dashboard page, you must transfer the value GLOBAL_FILTER for the filterMasters parameter.

Complete example of a structure file using global filters

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html>

<body>

<script src="../assets/javascript/mvhelper.js"
language="javascript" />

<script src="../assets/javascript/linkhelper.js"
language="javascript" />

<script language="JavaScript" type="text/javascript">
initializeFlex();
</script>

<div id="GlobalFilterDiv" style="position:absolute;
top:0px; z-index:1; width:100%;">

<script language="JavaScript" type="text/javascript">

showMVFlexFilterComponent("GLOBAL_FILTER");

</script>

</div>

<div style="position:absolute; top:105px; z-index:2;
width:100%;">

<table cellpadding="0" cellspacing="0" rules="none"
frame="void" border="0" bgcolor="#FFFFFF"
width="100%" height="100%">

<tbody>

<tr>

<td>

<script language="JavaScript"
type="text/javascript">
showMVFlexComponent("0", "Fav1",
"FAVORITES_PRIVATE", "FLEX", "100%",
"400", "GLOBAL_FILTER", "");
</script>

</td>

</tr>

<tr>

<td>

<script language="JavaScript"
type="text/javascript">
showMVFlexComponent("0", "Fav2",
"FAVORITES_PRIVATE", "FLEX", "100%",
"400", "GLOBAL_FILTER", "");
</script>

</td>

</tr>

</tbody>

</table>

</div>

</body>

</html>