Using Tiles in Dashboards

Tiles are boxes that display some statistics and small charts. They are very popular in modern dashboards. You can easily create tiles in AwareIM. You can either add a single tile to a content panel or you can pick some predefined tiles and add or more to a tab of a visual perspective.

To add an individual tile select the Content property of a Content Panel to display the Content dialog and then select the Tile button. To select one or more predefined tiles, select a tab in a visual perspective or a content panel inside a tab and click on the Add Tiles button in the toolbar.

When defining a tile imagine a grid of 3×3, so you have 9 cells that you can work with. You can put some content into some or all of the cells. Initially cells have no content, but you can add text, icon or chart into a cell. To do this select Text, Icon or Chart and then press the Settings button next to the cell to define properties of the selected content.

For text cells you can define the text itself: note that you can use tag expressions here, for example

COUNT Customer WHERE Customer.State='Active'

You can then specify other text properties, such as color, font, size and padding. You can also specify the CSS class or style of the text if you want to add some properties not available in the dialog.

Similarly, for icon cells you can define the CSS class of the icon font and then define other icon properties, such as color and font-size.

Only a limited number of chart types is available for inclusion in tiles:

  1. Bullet
  2. Pie
  3. Line
  4. Column
  5. Area

For bullet charts you need to specify expressions for the current and target values, for example: <<LoggedInSystemUser.CurrentValue>> <<SystemSettings.Target>> you can also define colors of the current and target values as well as width and height of the chart. An example of a tile that uses a bullet chart is in the dashboard of the CRM sample application.

For pie charts you need to provide an expression and color for each pie segment. An example of a tile with a pie chart is in the Dashboard of the Issue Resolution sample application.

Line, column and area charts are different because the data for these charts is provided not by expressions but by a query. You need to specify the name of the query when you define a chart. You also need to specify the name of the attribute of the object that the query queries on, that holds the values shown on the chart.

On the Tile dialog you can also specify some other properties of the Tile, like a Command that will be executed when the user clicks on a tile, the background color of the tile, the CSS class or style of the tile. You can also change some default values of the tile, such as height, default padding and border radius.

Tiles can be reused between visual perspectives and between applications. All you have to do is export a tile into an XML file and then import it in another visual perspective of the same or different application. To export a tile, click on the Export Tile button on the Tile dialog. To import a tile, click on the Import Tile dialog. Moreover, you can get your tile to appear in the list of predefined tiles if you export your tile into the AwareIM/TileTemplates folder.

Please also watch the video below

This video tutorial explains how to embed tiles into visual perspectives to create modern-looking dashboards.