02 — Interactive Data Tables

Hook-Tech Grid

Turn any SQL query into an interactive, filterable data table with conditional formatting, drill-down Data Cards, and preview panes — all designed in the browser, no front-end code required.

📊 Sortable, Filterable Tables 🔍 Drill-down Data Cards 🤖 Build With AI 📱 Desktop & Mobile Views
How it works

From SQL query to interactive table, in seven steps.

Follow a real example — a Sales by Sales Rep grid with conditional formatting, drill-down Data Cards, and a preview pane — from designer to mobile.

1 Pick a connection and start

Open the designer.

Click New Grid and you land on a tabbed designer — Properties, Query, Fields, Filters, Conditional Formatting, Preview Panes, and Styling. Pick which connection the grid runs against, give it a name, and choose a Platform: Desktop, Mobile, or both.

Connections come from Hook-Tech One. Each connection has its own schema — a grid is bound to one, and drill-down Data Cards have to come from the same connection.

Tabbed designer Per-grid connection Desktop & mobile platform flags
Grid designer Properties tab showing Name, Description, Connection, Grid Group, and Platform settings
2 Write or generate the query

Plain SQL — or describe it in English.

The Query tab takes any SQL — plain text or a stored procedure. Use @ParameterName tokens for anything that should be filterable. Hit Test to run the query and inspect the columns and a sample of rows.

Or skip the writing entirely — click Ask AI and describe what you want: "Sales TY and LY by sales rep, with margin and YoY change". The AI uses your AI Schema from Hook-Tech One to write accurate SQL against your real tables.

Plain SQL or stored procs @-parameters for filters Ask AI to write or refine
Grid designer Query tab with a SQL editor, Test button, and Ask AI panel showing a natural-language prompt about sales by sales rep
3 Configure how columns appear

Fields, formats, and per-cell rules.

The Fields tab lists every column the query returned. For each one set the display name, width, alignment, number format (currency, percentage, date), visibility, and a mobile-specific label for narrow screens.

Drill into Field Properties for the deeper controls — icon rules that swap text for a coloured arrow or flag, boolean display, and the drill-down link to a Data Card.

Per-field format & width Mobile-only labels Icon & boolean rules
Grid designer Fields tab showing a list of fields with Display Name, Width, Format, Visible, Show on Mobile
4 Add a filter bar

Ten filter types, one consistent UX.

Filters live at the top of the viewer and feed the query's @-parameters. Pick from Date Range with presets, Single Date, Text, Numeric, Number Range, Custom Dropdown, SQL Dropdown, SQL Multi-select, and Global Filter references to Hook-Tech One's shared filter library.

Each filter has a default value and an optional required flag. If a required filter has no value, the grid waits for the user to fill it in before running — protecting against multi-million-row scans by accident.

10 filter types Required-filter gating Global Filter references
Grid designer Filters tab showing a list of filters with type, parameter name, default value, and required flag, with a Date Range filter expanded
5 Highlight what matters

Conditional formatting per cell or per row.

Every grid can have any number of conditional format rules. Each rule is an expression — SalesYTD > 100000, InvoiceDate < Today() - 90 — plus a target (a specific cell or the whole row) and a style: fill colour, foreground, bold, italic.

Rules evaluate in sort order — first match per property wins — so most-specific rules first. The result is a table that reads at a glance: green rows for paid, amber for overdue, a red flag in the cell where margin slipped below threshold.

Cell or row targets Expression-based First-match-wins
Grid designer Conditional Formatting tab showing a list of rules with expressions like SalesYTD greater than 100000 and styles applied to cells or rows
6 Drill in two ways

Data Cards and Preview Panes.

Wire any field to a Data Card — a reusable popup that shows one row in detail with optional sub-tables — and that field's cells render with a magnifying-glass icon at run time. Click and the card opens with parameters resolved from the clicked row.

Or add a Preview Pane — a smaller grid docked beside or below the parent that re-runs every time the user selects a row. Map which parent fields flow into which child parameters, and the parent's filter values pass through automatically.

Per-field drill icons Side or bottom panes Filter values flow through
Grid viewer showing rows with magnifying-glass drill icons and a preview pane docked on the bottom showing sales detail for the selected row
7 Run it — desktop or phone

Live, interactive, and mobile-ready.

Save and the grid is live. The viewer gives users column sort, row grouping, per-column quick filters, and Excel / CSV export. Everything is interactive against live SQL — change the filter, hit Apply, the table re-queries.

On a phone, the same grid renders as tap-friendly cards with a Card Title field as the heading. Drill icons still appear next to fields that have Data Card links, and the filter bar collapses to a compact toggle at the top.

Sort, group, column filters Excel / CSV export Auto mobile card layout
Grid viewer on the desktop showing a sortable table with grouping, and a phone screenshot showing the same grid as stacked cards with drill icons
Beyond the basics

Two features that change how data tables work.

AI that writes the SQL for you

Skip the SQL editor entirely if you'd rather. Describe what you want — "sales by sales rep YTD with margin and YoY change" — and Grid's Ask AI generates the query against your real schema, picks sensible default fields, and proposes filters. Refine in plain English from there.

Drill-down Data Cards, reusable across grids

Build a Data Card once — say, a Customer card showing details, contacts, and recent orders — and wire it into any grid that has a Customer field. The drill icon appears automatically, and one click opens the card with parameters resolved from the clicked row.

Part of Hook-Tech One

Grid is part of the Hook-Tech One bundle.

View Bundle Explore Vision-AI →