Configure table widgets for modern dashboards
This topic applies to all SolarWinds Platform (self-hosted) products.
Table widgets display data or information in a tidy grid format. You can use them on modern dashboards.
How to configure table widgets
- Specify the title and other details for the widget.
- Define data to be displayed.
- Customize columns for the table: click Add new column.
- Customize sorting and add search bar (optional, done in Presentation).
- Save Changes.
See Edit widgets for details on resizing widgets, changing widget position, or deleting widgets.
Step 1: Specify the title and other details for the widget
-
In Presentation, expand Title and Description.
-
Provide the title and subtitle.
-
If you want to have a link with other information about the widget, provide it in the Widget link URL.
-
You can also provide a description that might help others to reuse the widget.
-
You can also set how often you want data in the widget to refresh. See Refresh rate.
-
To make the widget header hidden by default, select the Collapsible box. To expand the header on the widget, click the line on the top of the widget. To hide the header again, click the arrow signs.
Step 2: Define the data to be displayed
-
Expand Data and Calculations.
-
Define the data model with the graphical query builder or manually.
Use the graphical builder
-
Select Use the graphical query builder and click Edit.
-
Select the entity you want to display metrics for and click Next.
-
Drag columns that contain the raw data you want to see in the widget.
-
To display entities with specific values for one of the defined columns, click Add a filter and specify the values to be included.
You can only filter data from the original table. To use more complex filters, such as filtering data from joined tables, define the data Manually using SWQL.
-
See your current settings in the Model preview.
-
When you are satisfied with the preview, click Save model. Your settings are displayed in the data model and in the widget preview.
Manually
-
Select Hand-edit a SWQL Query and click Edit.
-
Copy the following query into the SWQL query field and click Save model.
SELECT TOP 25 COUNT(e.EventID) as value, t.Name as type FROM Orion.Events e JOIN Orion.EventTypes t ON e.EventType = t.EventType GROUP BY type ORDER BY value DESC
-
Step 3: Customize columns for the table
Columns mentioned in the Data model section are added automatically.
To add columns:
- Click Add new column.
- Expand Description and provide the label for the column. You can also specify a fixed width for the column or hide the column.
- Expand Property and formatting and specify the format for displayed data:
- When finished, save the changes.
Step 4: Specify sorting and search for table widgets (optional)
By default, the table is sorted by the value in the first column, in ascending order.
Customize sorting
-
In Presentation, expand Sorting, and select the column to sort by in the drop-down.
The values in the drop-down are labels you specified for your columns.
-
To sort in descending order, select the Descending box.
Add a search box for the table widget
In Presentation, expand Search, and switch on the Enable toggle. This adds a search box at the top of the table widget. You search for data displayed in any of the columns.