Monitor Wrapper Plugin

This plugin displays a complete monitor, but without module header and toolbar, within the plugin.

Configuration

moduleId

It is necessary to specify at least the ID of the monitor to be displayed in the plugin configuration.

{
   "moduleId": "MONITOR_ID"
}

wrapperConfiguration

To configure the wrapper object, additional Parameters can be configured. This is useful, for example, if you want to define a title when displaying within a TabPanel.

{
   "moduleId": "MONITOR_ID",
   "wrapperConfiguration": {
      "title": "Ein Monitortitel",
      "iconCls": "x-fa fa-fire"
   }
}

hideMonitorLinkBtn

(Optional, Boolean). If this value is set to true, the button to jump to the monitor module is hidden.

{
  "moduleId": "MONITOR_ID",
  "hideMonitorLinkBtn": true
}

monitorLinkBtnPosition

(Optional, String, Default "tr-tr"). This value can be used to change the position of the button to jump to the monitor module.

For possible options, see ExtJS documentation.

{
  "moduleId": "MONITOR_ID",
  "monitorLinkBtnPosition": "tl-tl"
}

Monitor configuration

The monitor to be displayed can also be influenced via the configuration. The entire state can be defined via a state object.

{
   "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.

{
   "moduleId": "MONITOR_ID",
   "monitorConfiguration": {
      "moduleCfg": {
         "stateId": "ZIEL_STATE_ID"
      }
   }
}

Context information

If the hook (such as the Hooks Detail view) provides a data record via the context using the attribute record, this can be accessed in the monitor configuration.

{
   "moduleId": "MONITOR_ID",
   "monitorConfiguration": {
      "moduleCfg": {
         "state": {
            "storeState": {
               "filters": [
                  {
                     "property": "MONITOR_SPALTE",
                     "source": "raw",
                     "value": [
                        "record.DATENSATZ_FELD_NAME"
                     ]
                  }
               ]
            }
         }
      }
   }
}

Keywords: