Collapse AllExpand All

13.1.9. Datasources

All Dashboards get their source data and formatting from Datasources. Datasources are required to provide the information to populate the Charts, but they are also used to define axis labels, color requirements and other presentation aspects of the Charts.

To view the list of available Datasources, select the "Datasources" option. The following screen will appear:

Dashboard Datasources Master List

The Datasources list displays information on all existing Datasources, including Datasource title, description, type, and public, active and system statuses.

Warning

Many of the Dashboards are marked as system Dashboards. You should be careful not to edit these, copying their information to your own versions instead.

To view the server side settings for your Datasources, select the "Server" tab. The following screen will appear:

Dashboard Server Options

Server settings define the internal web server that is used to present the Dashboard Charts. It is technically feasible to use these settings to view Dashboards in an external browser or other software. However, if you only intend to view Dashboards inside your xTuple client, you can just leave the settings as they are.

When defining your Dashboard server settings, you are presented with the following options:

Server Hostname

This is the network address of the web server. This is typically 127.0.0.1 for an internal (local) address―or you could enter the IP address of the PC/server running the xTuple client.

HTTP Server Port

Defaults to 3000. Typically no change is required, unless there is a conflict with other software.

WebSocket Server Port

Defaults to 3030. Typically no change is required, unless there is a conflict with other software.

Server API Key

Randomly generated key. This does not require changing.

Server SSL Key (Generate a Self Signed SSL Certificate)

Use the default key unless you wish to make the Dashboards externally available and want to provide a suitably secure SSL key.

Server SSL Certificate

Use the default key unless you wish to make the Dashboards externally available and want to provide a suitably secure (and signed) Server Certificate.

13.1.9.1. Dashboard Datasource

To create new a Datasource, select the NEW button. The following screen will appear:

Dashboard Datasource

When creating a new Datasource, you are presented with the following options:

Title

Enter a title to identify the Datasource.

Description

Enter a brief description to describe the Datasource.

Type

The type indicates how the Datasource will retrieve the data used to populate the Charts. The following choices are available: MetaSQL, Query Item, or URL. Depending on which type you choose, the related on-screen options will change, as follows:

MetaSQL Datasource Settings

In most cases, Datasources will be generated from previously written MetaSQL queries. This is the most common type. Choose the Group and Name of an existing MetaSQL query to define that as the source.

Query Item Datasource Settings

Query Sets are defined in the import/export area of xTuple. To use one of these Query Sets as a Datasource, choose the Head name and Item.

URL Datasource Settings

The URL Datasource will allow the Datasource data and formatting to be downloaded from an external web source/service. This will allow information external to xTuple to be included in Dashboards. This feature has not been implemented yet.

Chart Options

Specify the Chart display options you want to make available when Dashboard Panes are created using the Datasource.

Chart Types

Data can be displayed in a number of different graphical formats. The following options are available: bar, line, spline, step, area, area spline, area step, scatter, pie, donut, and gauge. To make a Chart type available for the Datasource, simply add the Chart type(s) to the "Granted Types" column.

Layout Grids

Dashboard Panes can be created to display in varying widths per row. Each Dashboard row can contain either one, two, or three Panes across, depending on the options allowed by the Datasource. To specify the grid layout options available for the Datasource, simply add the layout grid(s) to the "Granted Layout Grids" column, as shown in the following screenshot:

Chart Options Layout Grids Tab
Active

Select to indicate the Datasource is active. If not selected, the Datasource will be considered inactive.

Public Access

Select to indicate the Datasource should be available to all Users. If not selected, the Datasource will be considered private and will require Users to have the appropriate privileges to access it.

Private Access Settings

If the Datasource is private (i.e., not public), then you will need to specify how Users will gain access to the information.

Privileges

Control access using system privileges. Any Users having the specified privilege(s) will be able to use the Datasource when adding Dashboard Panes. To specify the desired system privileges, simply add the privilege(s) to the "Granted Privileges" column.

Users

Control access by User. Any User who has been granted access will have access to the Datasource. To give access to Users, simply add the User(s) to the "Granted Users" column, as shown in the following screenshot:

Private Access Settings Users Tab
Roles

Control access by Role. Any Users assigned to the specified Role(s) will have access to the Datasource. To grant access by Role, simply add the Role(s) to the "Granted Roles" column, as shown in the following screenshot:

Private Access Settings Roles Tab

The following buttons are unique to this screen:

ADD->

Highlight a specific source in the available sources column, then select this button to transfer the source to the granted sources column. Double-clicking on an available source will also transfer it to the granted sources column.

<-REVOKE

Highlight a specific source in the granted sources column, then select this button to remove the source from the granted sources column. Double-clicking on a granted v will also remove it from the granted sources column.