Carrier Dashboard

CTools components ..

A national Wireless Carrier requires a dashboard for tracking telecommunications traffic, with filters for Source Region, Destination Region, and Month (currently set to January), allowing for detailed analysis of calling patterns and platform usage.

Wireless Carrier Dashboard

Let's start by adding the Table components to the dashboard.

mainTable
  1. Browse to: /Public/CTools Dashboard/Carrier-Dashboard-CDA/Layout

  2. Click Edit under File Actions.

  1. Click the Components Panel icon.

  2. From the Components list, expand Standard, and then click Table Component.

  3. Name this table component, in the Properties pane:

• Click in the Value for the Name property.

• Enter: mainTable.

• Press Tab or Enter.

  1. Specify the data source, in the Properties pane:

• Click in the Value for the Datasource property.

• On the keyboard, press the down arrow.

• Select: tableQuery.

Select tableQuery as Datasource
  1. Specify the HTML object, in the Properties pane:

• Click in the Value for the HtmlObject property.

• On the keyboard, press the down arrow.

• Select: mainTableObj.

Select mainTableObj
  1. Save & Preview the dashboard.

Save & Preview

The table doesn’t look exactly like the one in the sample dashboard. In the next several steps we will specify some of the display options, set the page length, add trend arrows and data bars, and format the columns.


Advanced Properties

Advanced Properties extend the functionality of the component with features, such as:

• dynamic parameter passing between components

• custom JavaScript functions for complex calculations

• cross-component communication through PostExecution functions

• parameterized queries using variables and JavaScript expressions

  1. To view the advanced properties, in the Properties pane, click Advanced Properties.

Advanced Properties
  1. Change or set the following properties:

Property
Value

Show Filter

False

Info Filter

False

Page Length

7

Length Change

False

Pagination Type

Simple

Advanced Properties
  1. Specify the data types for the columns:

• In the Properties pane, click in the Value column for the Column Types property.

• In the new window, click the Add button seven times.

• In the Value columns, enter the following:

When entering the values just type the first few letters ..

  1. Save & Preview the dashboard.

Summary table - would be nice to have values next to Bar Chart ..

The data bar and trend arrow columns do not show the data values. We must add pre-execution code to display these values.

  1. Add pre-execution code to display the data values next to the data bars:

• In the Properties pane, click the ellipsis icon to the right of the Pre-Execution property.

• In the Javascript Wizard window, enter the following code, and then click OK:

function f() {

    this.setAddInOptions("colType","trendArrow",   
    {
        includeValue: true,
        good: true
    });
    
    this.setAddInOptions("colType","dataBar",   
    {
        includeValue: true,
        width: 80,
        startColor: "#414344",
        endColor: "#414344" 
    });
}
Javascript
  1. Save & Preview the dashboard.

Bar Chart data

Great .. the data is now displayed .. however, it does need to be formatted.

Also take a look at Africa .. may wish to address unknown values.

  1. Specify the column formats using sprintf functions:

• In the Properties pane, click in the Value column for the Column Formats property.

• In the new window, click the Add button seven times.

• In the text fields, enter the following:

Format Columns
  1. Specify the sort order:

• In the Properties pane, click in the Value column for the Sort by property.

• In the Index and Order fields, type the following, and then click OK:

Sort By
  1. Save & Preview the dashboard.

Nmbers - Formatted

Last updated

Was this helpful?