Skip to main content

Table Widget

The Table widget provides a powerful and flexible data display component for your applications. It supports various data sources, interactive features, sorting, filtering, pagination, and export capabilities.

OverviewDirect link to Overview

The Table widget allows you to display tabular data with rich formatting options, interactive controls, and responsive design. It can connect to different data sources including collections, reports, external databases, and variables.

A table at runtime: the toolbar (view selector, Search, Export, clear the filters, reload), the pagination and the rows.
A table at runtime: the toolbar (view selector, Search, Export, clear the filters, reload), the pagination and the rows.

Basic ConfigurationDirect link to Basic Configuration

Select the table on the canvas of the builder: the configuration panel shows its cards, Global (name and variable), Columns, Data source, Validation and Style.

Global SettingsDirect link to Global Settings

NameDirect link to Name

  • Field: Name
  • Purpose: Sets the display name for the widget
  • Usage: Used for identification in the widget list and management

Variable/ModelDirect link to Variable/Model

  • Field: Variable/Model
  • Purpose: Defines the data model that stores the table data
  • Usage: Specify the variable name that will hold the table's data array
  • Example: tableData, users, products
A table selected on the canvas and its Global card: name and variable.
A table selected on the canvas and its Global card: name and variable.

Data Source ConfigurationDirect link to Data Source Configuration

The Data source card starts with the question Where do the rows come from? and one tile per source. The hint under the tiles explains the selected source.

The Data source card of a table fed by a report: source tiles, report, query, default sort and display options.
The Data source card of a table fed by a report: source tiles, report, query, default sort and display options.

Data Source TypesDirect link to Data Source Types

CollectionDirect link to Collection

  • Tile: Collection
  • Description: The documents of a collection, filtered by the query
  • Configuration:
    • Choose the collection: the list shows This project first, then Other projects, with the name of the project of each collection. The button next to it opens the collection (or creates one when none is chosen)
    • Direct access to collection data with automatic querying
Data source: a collection, with the User views option turned on.
Data source: a collection, with the User views option turned on.

ReportDirect link to Report

  • Tile: Report
  • Description: The instances of a report, with its measures
  • Configuration:
    • Choose from existing reports; the button next to it opens the report
    • Inherits report structure and calculations

EDS (External Database Source)Direct link to EDS (External Database Source)

  • Tile: EDS
  • Description: An external database (SQL, LDAP, Google Sheets, API) declared in EDS
  • Configuration:
    • Select a configured database connection
    • Custom query capabilities (an EDS query)
Data source: an EDS connection and its EDS query.
Data source: an EDS connection and its EDS query.

VariableDirect link to Variable

  • Tile: Variable
  • Description: The content of the table's variable, filled by the page
  • Configuration:
    • Bind to existing data models
    • Handled by the page: Page change and Filter change name the page functions called with the number of the new page and with the filters typed, for a table paged and filtered by your own code
Data source: a variable, with the two functions of Handled by the page.
Data source: a variable, with the two functions of Handled by the page.

UsersDirect link to Users

  • Tile: Users
  • Description: The users of the workspace
  • Configuration:
    • Access to user directory
    • Built-in user properties
Data source: the users of the workspace, here filtered by a query.
Data source: the users of the workspace, here filtered by a query.

SoftyTableDirect link to SoftyTable

  • Tile: SoftyTable
  • Description: The rows of a SoftyTable
  • Configuration:
    • Choose the SoftyTable; the button next to it opens the SoftyTable (or creates one when none is chosen)
    • The query is a filter on its fields or, with the SQL statement option of the query popup, an SQL statement (see SoftyTable Query)
Data source: a SoftyTable, with a filter on its fields as the query.
Data source: a SoftyTable, with a filter on its fields as the query.

Query ConfigurationDirect link to Query Configuration

The Query block of the card shows the current filter (or No filter: every row). Click Add a filter, Write the query or Edit the query to open the Data query popup.

From top to bottom, the popup shows:

  1. The option card, when the source has one: Aggregation for a Collection or Report source, SQL statement for a SoftyTable source. A source without an option (EDS, Users) starts directly with the help
  2. The help on the form of the query, with an example
  3. The query editor
  4. The Test the query section (see Testing the Query)
The Data query popup: the Aggregation option, the help, the query editor and the integrated test with trial values and results.
The Data query popup: the Aggregation option, the help, the query editor and the integrated test with trial values and results.

Standard QueryDirect link to Standard Query

  • Purpose: Define data filtering and selection criteria
  • Format: JavaScript expressions with model variables (a MongoDB filter for a collection, a filter on the measures of a report, and SF_status, SF_createdAt, SF_createdBy…)
  • Syntax: Use {{variableName}} for dynamic values
  • Example: { status: "active", category: {{selectedCategory}} }
  • For an EDS, the query is an SQL query written as a JavaScript string, an LDAP object or a Google Sheets query, depending on the connection

Report QueryDirect link to Report Query

For a Report source, the query uses the names of the report: a measure by its label, a field of the instance by its SF_ name (SF_status, SF_createdAt, SF_updatedAt, SF_createdBy, SF_dueDate…). These names are also translated inside $or, $and and $nor, at any depth:

{ $or: [{ amount: { $gt: 1000 } }, { SF_status: "Running" }] }

Inside these three operators, a dotted path (measures.amount, variables.city) and a raw field of the instance (_id, name, createdAt, updatedAt, status, users, groups, dueDate, process, projectId, mode, instanceId) are kept as written.

An Aggregation pipeline is not translated: it is sent as written, so it uses the fields of the instance (measures.amount, status…).

SoftyTable QueryDirect link to SoftyTable Query

For a SoftyTable source, the query takes one of these forms:

  • A filter on the fields, written like a MongoDB filter: { category: 'Hardware', amount: { $gt: 100 } }
  • The explicit form, when you also choose the attributes or the relations: { where, attributes, include, group, otherOptions }, with the filter in where. On a table with a lookup or a one-to-many or many-to-many relation, attributes adds to the columns of the row instead of limiting them. The sort stays set by Default sort or by otherOptions: { order: … } (with a group, only Default sort applies); an order, limit or offset key placed directly in the form has no effect
  • An SQL statement: turn on SQL statement in the popup (The query is an SQL statement instead of a filter) and write it as a JavaScript string. The table runs it inside its own SELECT to add the filters, the sort and the pagination, so write a single SELECT without a final semicolon, and keep the Sort by field among the columns it returns
The Data query popup of a SoftyTable source: a statement on `@table(orders)`, with the SQL statement option turned on.
The Data query popup of a SoftyTable source: a statement on `@table(orders)`, with the SQL statement option turned on.

In the statement, name a table with @table(<table>): "SELECT * FROM @table(orders) WHERE city = '" + {{city}} + "'". Before running the statement, the server replaces each @table(...) with the table of the environment of the request: "orders_sf_test" in TEST, "orders_sf_prod" in PROD. The same page therefore reads the right rows once deployed.

  • @table(...) takes the exact name of the SoftyTable, capitals included, and can appear several times, for a join or a sub-query: SELECT c.name, SUM(i.amount) AS total FROM @table(contracts) c JOIN @table(invoices) i ON i.contract_id = c.id GROUP BY c.name
  • A name that is not a SoftyTable gives the error @table(x): unknown Softy Table, and a table that is not deployed in the environment of the request gives @table(x): this table is not deployed in PROD. The statement does not run
  • It is a replacement in the text, not an analysis of the SQL: @table(x) written inside a quoted text of the statement is replaced too. The rest of the statement goes to the database as written
  • It works wherever an SQL statement on a SoftyTable runs: the table and the choice fields of a page, the executeSoftyTableQuery action, softyTable.execute and aggregate in the web SDK, SF.softyTable.execute in the process SDK
  • The physical name, <table>_sf_<mode>, still works but stays on that environment: once deployed, a statement on orders_sf_test keeps reading the TEST rows in UAT and PROD, without any error. The builder shows a warning on such a query, in the query popup and in the Data source section
  • The name of the SoftyTable alone fails: SELECT * FROM orders gives the error relation "orders" does not exist
  • When a query fails on the page, filter or SQL statement, the table shows The data could not be loaded instead of its rows. In TEST the message of the database comes with it; in UAT and PROD the user only reads this sentence
  • A variable is pasted into the text of the statement: do not build it from free text typed by the user

When the user filters the columns of a SoftyTable:

  • The column filters are added to the query with AND: they complete the $and of the query, they do not replace it
  • A text filter (contains, starts with, ends with…) looks for the text as typed, not as a regular expression: ., * or ( are ordinary characters
  • A filter on a date and time column covers the chosen days, from the start of the first one to the end of the last one, in the local time of the user

Aggregation QueryDirect link to Aggregation Query

  • Purpose: Perform data aggregation operations
  • Features:
    • Group by operations
    • Count, sum, average calculations
    • Complex data transformations
  • Toggle: Turn on Aggregation in the popup (Collection and Report sources): the query is then a pipeline, [{ $match: … }, { $group: … }]
  • Restrictions: The server checks the pipeline with the same rules as the SDK (see Rules applied by the server): read stages only, no $out, $merge, $function, $accumulator or $where, and a $lookup only reads the collections the user may read, never users. A refused pipeline fails with the error Aggregation refused: …

Testing the QueryDirect link to Testing the Query

The Test the query block of the popup runs the query on the TEST data without leaving the builder. It is read only: nothing is changed.

  • Trial values (JSON): the values given to the variables of the query. The variables found in the query ({{statut}} for example) are added automatically.
  • Run the test: shows the first rows and their number in Results, either as the Table columns or as All the data (every property of the rows, handy to find the field names of the columns).

On a SoftyTable source, the test reads the table as the page does, with a filter or with an SQL statement. When the query fails, the message of the server takes the place of the rows in Results: a column that does not exist, an @table(...) that is unknown, an SQL statement written without quotes.

Click Save to keep the query, or Cancel.

Sort ConfigurationDirect link to Sort Configuration

  • Default sort: Sort by (field name) and Descending / Ascending
  • Advanced sort (several fields): opens a popup to write a $sort object, 1 for ascending and -1 for descending, in the order of the fields. Empty: back to the simple sort

DisplayDirect link to Display

  • Rows per page: maximum number of records per page (default 10)
  • Row click: the action run when the user clicks a row (see Row Click)
  • User views: lets each user save their own views of the table (see User Views)

Column ConfigurationDirect link to Column Configuration

The Columns card lists one card per column: the grip to reorder the columns by drag and drop, the label and the field, the type with its icon, small badges for what is set in the drawer (filterable, sortable, pinned, conditional display, always hidden, HTML template), Configure the column (gear) and Delete the column (with confirmation). Add a column adds a column and Import (collection, report or users source) creates the columns from the data source.

The Columns card: one card per column with its label, field, type and badges.
The Columns card: one card per column with its label, field, type and badges.

Configure the column opens a drawer, in cards: Column (label, field, width and type), Behaviour, Position when scrolling, Display, Cell template and, for a buttons column, Buttons.

Column TypesDirect link to Column Types

The Column type is chosen with tiles in the drawer (or in the type list of the column card).

The Column card of the drawer: label, field, width and column type.
The Column card of the drawer: label, field, width and column type.

StringDirect link to String

  • Description: Text data display (tile Text)
  • Features:
    • Filterable with text search
    • Sortable alphabetically
    • Custom HTML formatting

NumberDirect link to Number

  • Description: Numeric data display
  • Features:
    • Numeric filtering (equals, greater than, less than)
    • Numeric sorting
    • Decimal precision control

DateDirect link to Date

  • Description: Date and time display
  • Features:
    • Date range filtering
    • Chronological sorting
    • Custom date formatting
  • Format: Configure using the Date format field under the columns
  • Example: YYYY-MM-DD HH:mm:ss

CurrencyDirect link to Currency

  • Description: Monetary value display
  • Features:
    • Automatic currency formatting
    • Locale-specific display
    • Numeric filtering
  • Configuration (Currency config card):
    • Local: Locale (e.g., 'en-US', 'fr-FR')
    • Currency: Currency code (e.g., 'USD', 'EUR')

BooleanDirect link to Boolean

  • Description: True/false value display
  • Features:
    • Checkbox representation
    • True/False filtering

ArrayDirect link to Array

  • Description: Array data display (tile List)
  • Features:
    • List formatting
    • Array-specific filtering

Custom ListDirect link to Custom List

  • Description: Shows the label of a value of a custom list, translated in the language of the user
  • Configuration: Choose the list in the drawer; a button opens it

ButtonDirect link to Button

  • Description: Action buttons within table cells (tile Buttons)
  • Features:
    • Multiple buttons per column
    • Custom actions and styling
    • Conditional visibility
  • Configuration: see Row Buttons and Row Click

SelectionDirect link to Selection

  • Description: Row selection checkboxes
  • Features:
    • Multi-row selection
    • Select all functionality
    • Selection event handling

An existing Dropdown column keeps its type, which is no longer offered for a new column; in its query dialog, the Is Aggregation and Is SQL Statement switches are above the editor.

Column PropertiesDirect link to Column Properties

FieldDirect link to Field

  • Purpose: Database field name or data property (the property of the row shown in the cell)
  • Format: Use dot notation for nested properties
  • Example: user.name, product.price
  • Suggestions: with a Collection source, the field suggests the keys of the collection, _id included, on the column card and in the column drawer alike, with their type and a sample value. The list is filtered as you type, and you can always type another name. The keys come from the first TEST document, top level only: type by hand a nested property or a key that this document does not have

LabelDirect link to Label

  • Purpose: Display header for the column
  • Localization: The title of the header is translated when shown
  • Example: User Name, Product Price

WidthDirect link to Width

  • Purpose: Set column width, in pixels
  • Whole width: the table always takes the whole width. When every column has a width, those widths are minimums and the columns share the space left, except the fixed, selection and button columns, which keep theirs. A table wider than the page scrolls
  • Empty: the column takes the space left
  • Example: 150

Column BehaviorDirect link to Column Behavior

The Behaviour, Position when scrolling and Display cards of the column drawer.
The Behaviour, Position when scrolling and Display cards of the column drawer.

FilterableDirect link to Filterable

  • Purpose: Enable filtering for the column: a filter field shows under the header when the user clicks Search
  • Features:
    • Type-specific filter controls
    • Real-time filtering
    • Multiple filter operators

SortableDirect link to Sortable

  • Purpose: Enable sorting for the column: arrows in the header sort the table on this column
  • Features:
    • Click-to-sort headers
    • Visual sort indicators

Fixed PositionDirect link to Fixed Position

  • Purpose: Keep the column visible when the table scrolls sideways (Position when scrolling)
  • Options:
    • Scrolls: not fixed
    • Pinned left: fixed to the left side
    • Pinned right: fixed to the right side

Required (for editable tables)Direct link to Required (for editable tables)

  • Purpose: Mark field as required for data entry: a value is required when the row is edited
  • Validation: Prevents empty submissions

Multiple choice (Dropdown and User columns)Direct link to Multiple choice (Dropdown and User columns)

  • Purpose: Several values can be chosen

VisibilityDirect link to Visibility

  • Purpose: Control column display (Display card): Always shown, Always hidden, or Shown if a condition is true (Add a condition)
  • Format: JavaScript expression; page variables go between double braces
  • Example: {{userRole}} === 'admin'

Cell TemplateDirect link to Cell Template

  • Purpose: Value shown as is, or a Custom HTML template that replaces the content of every cell of the column (Customize)
  • Format: HTML; the row is available in scope.row

Row Buttons and Row ClickDirect link to Row Buttons and Row Click

Buttons ColumnDirect link to Buttons Column

In the drawer of a Buttons column, the Buttons card shows a Preview in a row (buttons only show their icon; the label appears on hover) and one line per button:

  • Icon and Style (Neutral, Grey, Primary, Success, Warning, Danger)
  • Label (on hover)
  • Action: click the field to open the Actions drawer, the same visual action editor as for a button widget. A new function is created for the button when it has none (named after the table and the button); an existing function opens with its actions. In the actions, SF_input holds the data of the clicked row (for example SF_input._id).
  • The eye button sets a display condition (Always shown or Shown if …), and the bin deletes the button. Add a button adds one.
The Buttons card of a buttons column.
The Buttons card of a buttons column.
The Actions drawer of a "View task" row button: an openTask action that opens the task of the row (SF_input._id).
The Actions drawer of a "View task" row button: an openTask action that opens the task of the row (SF_input._id).

Row ClickDirect link to Row Click

The Row click field of the Data source card (Display section) opens the same Actions drawer: the actions run when the user clicks a row, with the row in SF_input. A small cross on the field removes the link (the function itself is kept).

Interactive FeaturesDirect link to Interactive Features

At runtime, the toolbar above the table holds, from left to right: the view selector (with the User views option), Search, Export (except for a Variable source), a brush that clears the filters and a button that reloads the rows. The pagination and the number of rows are on the right.

At runtime: the filter fields under the headers after a click on Search, and the Export menu.
At runtime: the filter fields under the headers after a click on Search, and the Export menu.

FilteringDirect link to Filtering

  • Toggle: The Search button shows or hides the filter fields under the headers of the filterable columns
  • Per-Column: A rule and a value for each column
  • Filter Types (the rules as the user sees them):
    • Text: Equal, Not equals, Starts, Ends, Contains, Not contains, Empty
    • Number and currency: =, !=, >, >=, <, <=, Empty
    • Date: a range of days, with At, Not at, Befores, Afters, Empty
    • Array: Equal, Not equals
    • Boolean: True, False
    • Custom list: Equal, Not equals
  • EDS source: The Empty rule does not exist, and an Array column has no rule

PaginationDirect link to Pagination

  • Controls: Previous/Next navigation
  • Page Size: Configurable items per page
  • Display: Current page and total records
  • Position: Top and bottom navigation

SortingDirect link to Sorting

  • Click Headers: Sort by clicking column headers
  • Visual Indicators: Sort direction arrows
  • Multi-Column: Advanced sorting capabilities

Export OptionsDirect link to Export Options

The Export button of the toolbar offers CSV, Excel and Google Sheets. A table with a Variable source has no export.

An export holds every row that matches the query and the current filters, not only the current page, with the labels of the columns as headers:

  • Columns: The columns of the table, without the Buttons and Selection columns, which have no value. A column hidden with its Display setting is exported too
  • Field with a space or an accent: A column whose Field holds anything other than letters without accents, digits, _ and . (Montant total, priorité) is left out of the CSV and Excel files, without any message. Google Sheets exports it
  • Dotted path: A column with a nested Field (client.nom) is filled in CSV, but stays empty in Excel and Google Sheets
  • SoftyTable source: The CSV and Excel exports give what the table shows rather than the raw values: the labels of the options, the name of the parent of a relation, the dates and times in local time. Google Sheets receives the raw values of the SoftyTable (the identifier of an option, the foreign key of a relation)

CSV ExportDirect link to CSV Export

The Customize CSV dialog.
The Customize CSV dialog.
  • Value separator: Comma, semicolon, or tab
  • Decimal separator: Point or comma
  • Date format: Customizable date formatting
  • File name: Custom export filename

Excel ExportDirect link to Excel Export

  • Sheet name: Custom worksheet name
  • File name: Custom export filename
  • Formatting: Preserves data types

Google Sheets ExportDirect link to Google Sheets Export

After the Google sign-in, the dialog asks for the File name and the folder (Choose Folder; without a choice, the root of the Drive). Open spreadsheet after export opens the new spreadsheet in a new tab.

Selection HandlingDirect link to Selection Handling

  • Row Selection: Checkbox-based selection
  • Selection Events: Handle selection changes
  • Bulk Actions: Operate on selected rows

User ViewsDirect link to User Views

With the User views option (Data source card, Display section), each user of the application can arrange the table and save that as named views: the filters, the sort, the order of the columns (drag a column header onto another one) and their widths (drag the border of a header). The option is on for the new tables and off for the existing ones.

At runtime, the view selector is the first button of the table toolbar. It shows the current view (a star marks the default one):

  • Standard view: the table as designed in the builder.
  • The user's views: click a view to apply it. The star makes it the default view, which opens with the page; the pencil renames it and the cross deletes it (with confirmation). A search field appears when there are more than five views.
  • When the user changes the filters, the sort or the columns, Modified appears next to the selector with Save (updates the current view) and Cancel. Save as a new view creates a view from the current state.
At runtime, the view selector of a table opened on a saved view.
At runtime, the view selector of a table opened on a saved view.

Views are personal: they are stored on the server for each user, each table and each environment (TEST, UAT, PROD), up to 50 views per table, with names of up to 80 characters. Without the option, the table works exactly as before.

Advanced FeaturesDirect link to Advanced Features

Aggregation SupportDirect link to Aggregation Support

  • Group By: Data grouping operations
  • Calculations: Sum, count, average functions
  • Nested Data: Hierarchical data display

Real-time UpdatesDirect link to Real-time Updates

  • Data Binding: Automatic updates when source data changes
  • Refresh Controls: Manual refresh capabilities
  • Loading States: Visual feedback during data operations

Mobile OptimizationDirect link to Mobile Optimization

  • Responsive Layout: Automatic mobile adaptation
  • Touch Controls: Touch-friendly interactions
  • Collapsible Details: Expandable row details on mobile

Usage ExampleDirect link to Usage Example

A tracking page shows the requests of the user in a table placed in a tab: the source is a report (Data source card), and each measure to show is a column (Columns card), with a Buttons column to open the request.

A table fed by a report, in a tab of a tracking page, selected in the builder.
A table fed by a report, in a tab of a tracking page, selected in the builder.

Best PracticesDirect link to Best Practices

PerformanceDirect link to Performance

  • Use appropriate limits for large datasets
  • Implement server-side filtering for big data
  • Consider pagination for user experience

User ExperienceDirect link to User Experience

  • Provide clear column headers
  • Use consistent data formatting
  • Include loading states for better feedback

AccessibilityDirect link to Accessibility

  • Ensure proper keyboard navigation
  • Use semantic HTML structure
  • Provide alternative text for visual elements

Data ManagementDirect link to Data Management

  • Validate data before display
  • Handle error states gracefully
  • Implement proper data refresh strategies

TroubleshootingDirect link to Troubleshooting

Common IssuesDirect link to Common Issues

Data Not LoadingDirect link to Data Not Loading

  • Check data source configuration
  • Verify query syntax
  • Ensure proper permissions

Formatting ProblemsDirect link to Formatting Problems

  • Validate column type settings
  • Check date/currency format configurations
  • Verify CSS class applications

Performance IssuesDirect link to Performance Issues

  • Reduce page size for large datasets
  • Optimize query complexity
  • Consider server-side processing

Debug TipsDirect link to Debug Tips

  • Use browser developer tools
  • Check console for error messages
  • Test queries independently
  • Verify data source connectivity