Monitor Wrapper Plugin
This plugin displays a complete monitor—but without the module header and toolbar—within a plugin hook. Using the plugin mechanism, a monitor can thus be embedded both in the detail view of another monitor and in panel or tab hooks of other BPC modules.
The embedded monitor loads as soon as the plugin’s area becomes visible and offers the full range of functions of the monitor instance referenced via moduleId (table view, filters, sorting, and detail view).
Unless hideMonitorLinkBtn is set to true, the plugin displays a floating button () in the upper-right corner that allows users to switch directly to the standalone monitor module.
|
If you want to embed a Monitor preview on a Process Dashboard, use the Process Preview dashboard widget. |
Setting Up the Plugin
In the administration area, you always assign the plugin (monitor_wrapper, display name: Monitor Wrapper) to the target module in whose hook the embedded monitor is to be displayed; see Plugin Configuration.
You specify which monitor is displayed in the plugin’s JSON configuration via moduleId.
Typical use cases include:
- Process Monitoring
-
In the Process Monitoring module via the Detail View hook, to embed an additional monitor as a tab in a process’s detail view—for example, filtered by correlated processes or subprocesses using context information.
- Core Services and Other Modules
-
In panel or tab hooks of other modules, e.g., in the Core Services module via the Admin Tabpanel hook.
Configuration
Use the plugin’s JSON configuration to control which monitor is embedded and how the wrapper behaves.
moduleId
Specifies the component ID of the monitor instance to be displayed as a string (required field).
{
"moduleId": "MONITOR_ID"
}
wrapperConfiguration
Passes an optional object with additional configuration parameters to the surrounding wrapper container.
This is useful, for example, to define a tab title and an icon when displaying within a tab panel via title and iconCls.
{
"moduleId": "MONITOR_ID",
"wrapperConfiguration": {
"title": "Ein Monitortitel",
"iconCls": "x-fa fa-fire"
}
}
hideMonitorLinkBtn
Controls, via an optional Boolean value (runtime default: false), whether the floating button for navigating to the monitor module is hidden.
If this value is set to true, the button is hidden (in the configuration template in the administration area, "hideMonitorLinkBtn": true is the default value).
{
"moduleId": "MONITOR_ID",
"hideMonitorLinkBtn": true
}
monitorLinkBtnPosition
Adjusts the position of the button that navigates to the monitor module using an optional string (default value: "tr-tr").
For possible options, see ExtJS Documentation.
{
"moduleId": "MONITOR_ID",
"monitorLinkBtnPosition": "tl-tl"
}
stateIdPrefix
Sets a prefix for the state ID (stateId) of the embedded monitor using an optional string (default: "defaultStateIdPrefix").
This is useful if the same monitor is embedded multiple times via the plugin and the saved user settings (e.g., column widths or filters) are to be kept separate from one another.
{
"moduleId": "MONITOR_ID",
"stateIdPrefix": "detailSubMonitor"
}
Monitor Configuration
The monitor to be displayed can also be customized via the plugin configuration using monitorConfiguration.
You can define the initial state using a state object, e.g., to set a fixed filter:
{
"moduleId": "MONITOR_ID",
"monitorConfiguration": {
"moduleCfg": {
"state": {
"storeState": {
"filters": [
{
"property": "MONITOR_SPALTE",
"source": "raw",
"value": [
"FILTER_WERT"
]
}
]
}
}
}
}
}
It is also possible to reference an already configured view via ` stateId `:
{
"moduleId": "MONITOR_ID",
"monitorConfiguration": {
"moduleCfg": {
"stateId": "ZIEL_STATE_ID"
}
}
}
Context Information
If the hook (such as the Detail View hook) makes a record available via the context under the attribute ` record , you can access field values of the selected record in ` `monitorConfiguration ` using placeholders of the form ` record.<FELDNAME> `:
{
"moduleId": "MONITOR_ID",
"monitorConfiguration": {
"moduleCfg": {
"state": {
"storeState": {
"filters": [
{
"property": "MONITOR_SPALTE",
"source": "raw",
"value": [
"record.DATENSATZ_FELD_NAME"
]
}
]
}
}
}
}
}