The Dashboard-Feature includes Dashboards into Odysseus Studio. A Dashboard is a screen (or view) with multiple query result visualisations. With this, it is possible to customize the appereance of Odysseus for end-users. Due the integration to the project-infrastructure, dashboards are permanently saved. If a dashboard is shown on screen, the underlying queries will be executed automatically to receive results to visualize. If a dashboard is closed, previously added queries will be removed. This makes consistent statistic visualization through multiple Odysseus starts possible.

Installation

To use the Dashboard-Feature, the feature-plugin de.uniol.inf.is.odysseus.rcp.dashboard.feature must be included in the product-configuration. Currently, it contains the plugins de.uniol.inf.is.odysseus.rcp.dashboard, de.uniol.inf.is.odysseus.rcp.dashboard.part and de.uniol.inf.is.odysseus.rcp.dashboard.part.example. The latter contains only one sample DashboardPart. It can be manually excluded if desired.

DashboardParts

A DashboardPart is (as the name says) a part of a Dashboard. One part can be used in multiple Dashboards multiple times if needed. One DashboardPart presents the results of one Odysseus Script visually. Only the results of the last query are considered. DashboardParts are stored as plain XML-Files with prt-Ending.

Create new DashboardParts

Before creating a new dashboard part, one make sure that the query to use is ready and functional. To create a new DashboardPart, one can use the typical way to add a new file in Eclipse. In the New...-Wizard, the user chooses to add a DashboardPart.. The first step is to specify the project and/or folder to place the new DashboardPart-File. The prt-Ending will be added automatically if not specified by the user.

Next you have to choose the way, how the dashboard part should be connected.

  • You can use an existing query file. In this case the query is executed every time the dashboard part is initialized. If the part is used multiple times, the query will be installed for each dashboard part (if query sharing is not deactivated, the query will be shared, so there is no additional work to done).

  • You can use a source an use this as input. Each time the dashboard part is used, the source must be installed before.
  • You can use a running query. In this time the query must run, before the dashboard part can be used.

In the next step you can set some key value pairs. These can be used as replacements in Odysseus Script.

Next, the type of the DashboardPart must be chosen. 

A type describes, how to visualize the query results. It contains a short description and a list of settings to configure the DashboardPart. If a setting has an star ( *) after his name, the setting is mandatory. It is optional otherwise. A more detailed description of currently available types can be seen in Types of DashboardParts. The values of the settings can be changed after creation as well (see below).

The last step is to choose the query to execute the receive the results to show.

Two possible ways to integrate the query into the dashboard part are possible. If the query is static and should never be changed, the query can be copied into the dashboard part. The resulting part is more consistent and can be later moved easier, if desired. Changes in the query afterwards are not applied to the dashboard part. The other possibility is to link dashboard part with the query. If the query changes (e. g. bugfixes), it will be applied to the dashboard part. After clicking "Finish", the new dashboard part is created at the specified location.

Showing and Configuring DashboardParts

To show a dashboard part, a simple double-click on the corresponding prt-File is needed. If the underlying query can be executed without errors, the editor area shows the graphical its graphical result. At the top, two tabs are shown. The first is the presentation tab, showing the graphical results mentioned. The second tab, the settings-tab gives an overview about the settings configuring the dashboard part. Depending on the type of the dashboard part and setting, the setting can changed here to apply improvements. Which settings are editable is shown in Types of DashboardParts. If a setting is changed, the changes applies immediately in the presentation tab (depending on the implementation of the dashboard part). At least, closing and reopening the prt-File applies the changes.

Remove DashboardParts

Removing one dashboard part by simply removing from the project (e.g. with DEL-Key).

Dashboards

As mentioned above, a Dashboard is a container of multiple DashboardParts. Each DashboardPart contains exacly one visualization of a query-script (see Odysseus Script for defining scripts in Odysseus). Dashboards are stored as plain XML-Files with dsh-Ending. 

Adding Dashboards

To include a new Dashboard to a project or workspace, the classical way of adding new files in Eclipse can be followed. Either through the 'New'-Menu or by the context-menu in the Project Explorer, new Dashboard-Files can be named and added. At first, a Dashboard is empty. The shown screen is completely white. The next step is to add DashboardParts (see DashboardParts in this article).

Adding DashboardParts to Dashboards

Assuming that a number of DashboardParts already exists in the Workspace, one of them can be added by editing the xml-contents of the Dashboard-file:

  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <Dashboard>
    <DashboardPart file="Relative/Path/To/File.dsh" h="300" w="300" x="100" y="100"/>
  </Dashboard>

A more intuitive way is to drag-and-drop the prt-File of the desired dashboard parts into the open dashboard area. A added dashboard part cannot be configured (changing settings). If a setting should be changed, the corresponding prt-File must be opened (see above). After that, the part must be removed and added again in the dashboard.

Layout

There are two ways to position and scale the DashboardParts. One possibility is to change the coordinates, width and height in the file directly (see above code). It is obvious, that x and y stands for the coordinates (in pixels, with (0,0) in the top-left corner of the editor-view). h describes the height of the DashboardPart, w the width (both also in pixels). The second way is to "steer" the DashboardParts: by selecting one in the Dashboard, it can be positioned and scaled with the arrow-keys:

  
Strg + Arrow-KeysPositioning
Strg + Shift + Up/DownChange height
Strg + Shift + Left/RightChange width

It is planned to position and resize with the mouse cursor.

Removing DashboardParts

To remove one dashboard part from the Dashboard, users must select the part to be removed and press Strg + Delete

 

 

  • No labels