Skip to content
MyAppBuilder
StableDataVersion 1

Table

Overview

Shows records as rows and columns with sorting, paging and an optional delete button. The workhorse for back-office screens where staff scan, sort and open records.

Shows records in rows and columns with sorting and paging.

When to use

  • A customers list with name, email, phone and status
  • Open invoices sorted by due date with the amount column
  • A job list filtered by the signed-in technician
  • An audit of recent sign-ups ordered by Created at
  • A read-only product price list on a customer portal

When not to use

  • Editing many values in place: use Data Grid
  • Records with pictures or long descriptions: Cards or Detail View read better
  • Phone-first apps: a List with a custom layout or Cards (Compact) adapts better to narrow screens

Quick start

  1. Add a Table and open Properties → Data; choose the entity (for example Customers)
  2. Pick the Columns to show and their order; leave empty to show the first six fields automatically
  3. Add filters (Status equals Active) and a default sort in the Data settings
  4. Set “When a row is clicked” to “Run onRowClick actions” and add Navigate → Customer details with id = Event → id
  5. Set Rows per page and keep Built-in pagination on

Properties

Titletext (bindable)

Heading shown above the table. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.

Example: Open jobs

Columnscolumns

Which fields appear, in which order, with an optional custom header. You can also add the system columns Created and Updated. When empty, the first six fields are shown except long text, JSON, files and images.

Example: Name · Email · Status · Created

Rows per pagenumber (1–200)

How many records are loaded and shown at a time. Smaller pages load faster on phones; larger pages reduce clicking. The server never returns more than this per request.

Default: 10

Built-in paginationboolean

Shows “1–10 of 243” with previous/next buttons under the table when there are more records than one page.

Default: true

Click headers to sortboolean

Lets visitors click a column header to sort ascending, again for descending, and a third time to return to the default sort. Sorting is done on the server across all pages.

Default: true

When a row is clickedselect

Nothing keeps rows passive. Select stores the row as the table's selected record (for a Detail View next to it). Run onRowClick actions also stores the selection and runs your actions.

Options: none — Nothing, select — Select row (component state), actions — Run onRowClick actions

Default: none

Show delete buttonboolean

Adds a trash icon to each row. Deleting asks for confirmation and is refused by the server unless the role may delete. Hidden for read-only data sources.

Default: false

Deleted records cannot be restored from the app.

Allow CSV exportboolean

Beta. Shows an Export CSV button above the table for signed-in app users. The file contains the list they are looking at (current filters, search and sort) with the configured columns (or every field when none are set), read on the server with their permissions: records they can't read and fields hidden from their role are never included. Text that a spreadsheet could run as a formula is neutralised. Up to 10,000 rows, 10 exports per 10 minutes per user; every export is audited.

Default: false

Anyone who can see the table can take its data with them. Turn it on only for roles that may keep a copy.

Empty-state texttext

Message shown when the query returns no records (after filters, search and permissions). Tell people what to do next: “No jobs yet — add one with the button above”.

Default: No records yet.

Data binding

Bind Data to an entity query (filters, sort, search and limit) or to an API source returning a list. Rows are fetched one page at a time. The table exposes page, sort, selectedId and selectedRecord as component state, so a Detail View can bind to Component state → Table → selectedRecord.

Properties that can use dynamic data: Title, data.

Events

On row click
Runs when a record is clicked or activated with Enter. Event → record holds the whole record and Event → id its id; actions can also read Current record. Typical: Navigate to a details page with id = Event → id, or Open Drawer with the record.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's page, selectedId, selectedRecord, sort from the Data Picker → Component state.

Responsive behavior

The table scrolls horizontally on narrow screens instead of wrapping. Keep 3–4 columns for phone pages or switch to Cards.

Permissions

Records are filtered on the server by the current role's rules (for example customers only receive their own records) and hidden fields are removed before anything reaches the browser. Hiding this component does not protect the data; set permissions on the entity.

Accessibility

  • Headers announce the current sort direction
  • Clickable rows are keyboard reachable; prefer a dedicated button column for destructive actions

Examples

Customers with a details page

Example
Source: Customers
Columns: Name, Email, Phone, Status
Sort: Name ascending · Rows per page: 20
When a row is clicked: Run onRowClick actions
On Row Click: Navigate → Customer Details, customerId = Current Row.id

Master–detail on one page

Example
Table: Source Jobs · When a row is clicked = Select row
Detail View (next to it): Data = Component state → Table → selectedRecord

Common patterns

  • Search input above the table bound to the query's Search
  • Dropdown bound to a Status filter
  • Relation columns automatically show the related record's name

Limitations

  • No column resizing, grouping or row expansion
  • Long text, JSON, files and images are not shown as columns
  • At most 200 rows per page

Troubleshooting

The table is empty although the entity has records

Why: The current preview role has no read access, or a filter uses a value that is empty on this page

Fix: Check the role's permissions and the filter values in Properties → Data

Clicking a row does nothing

Why: “When a row is clicked” is Nothing and no actions exist

Fix: Set it to “Run onRowClick actions” and add an action

Sorting a column resets the page

Why: Expected: sorting always returns to page 1

Fix: No action needed

Related

Was this helpful?