FlowWright's Dashboard offers a SQL data-driven card view control, a UI component that displays database records as individual "cards" rather than in traditional spreadsheet-style rows.
Navigate to “Manage > Dashboards”.

On the “Manage Dashboard” page, select the “Actions > Create” option.

Enter the “dashboard name and the position order number.” Select the checkbox to open the dashboard designer, then click the “Create” button to start.

The dashboard designer creates the new definition.

Search for “SQL card,” then drag and drop the widget onto the canvas. Click the “Edit” icon to configure.

A pop-up is rendered for configuration.

Provide the title. Select the database connection from the drop-down list. Enter the “SQL Select” query. Click the “Test Query” button to validate the syntax. A confirmation message appears in the top-right corner. For the Date filter column, specify a table column with the “date” data type.

The SQL card widget provides four templates: Deals, Employee Count, Open Tickets, and Statistics Card. The widget configurations are similar and involve mapping SQL SELECT columns to the template fields.
Create a SQL Card using the “Deals” template.
Use the arrow keys to navigate the choices. Select the card, then click OK to configure it.

Enter the image file path (on the application server) for the ‘Logo’. Provide the column references for the template fields, as shown in the example below.

Customize the colors from the drop-down list for the “heading background and text” and “body background and text” regions. Select the checkbox to show the “header.” Click the “Save” button.

The card widget configuration is saved, and a confirmation message appears in the top-right corner.

Select the “UI > Preview” option.

The Dashboard Card appears as shown in the example.

Create a SQL Card using the “Statistics” template.
Search for “SQL card,” then drag and drop the widget onto the canvas. Click the “Edit” icon to configure. Enter the title. Select the database connection from the drop-down list. Enter the “SQL Select” query. Click the “Test Query” button to validate the syntax. A confirmation message appears in the top-right corner. For the Date filter column, specify a table column with the “date” data type.

The sample SQL SELECT query is provided below for reference.
SELECT
-- 1. Logo Path (Static or from a settings table)
'\images\wait.png' AS logo,
-- 2. Percentage Calculation (e.g., Growth or specific metric)
-- Using 100.0 to ensure decimal results
ROUND(CAST((COUNT(CASE WHEN status = 'Completed' THEN 1 END) * 100.0) / NULLIF(COUNT(*), 0) as Float),2) AS percentage_label,
-- 3. Total Orders [486]
COUNT(*) AS total_count,
'Total Orders' AS total_label,
-- 4. Completed Label & Value [351]
'Completed' AS sub_label,
COUNT(CASE WHEN status = 'Completed' THEN 1 END) AS sub_count,
-- 5. Progress Bar (usually a decimal between 0 and 1)
ROUND(CAST(COUNT(CASE WHEN status = 'Completed' THEN 1 END) AS FLOAT) / NULLIF(COUNT(*), 0) * 100,2) AS progress_bar_value
FROM orders;
Use the arrow keys to navigate among the choices. Select the “Statistics” card, then click OK to configure. Enter the image file path (on the application server) for the ‘Logo’. Provide the column references for the template fields as shown in the example below. Customize the colors from the drop-down list for the “heading background and text” and “body background and text” regions. Select the checkbox to show the “header”. Click the “Save” button.

The card widget configuration is saved, and a confirmation message appears in the top-right corner.

Select the “UI > Preview” option. The “Dashboard Card” appears as shown in the example below.
