Lookup Tables
Lookup tables are key-value data tables that can be referenced from LOOKUP() expressions in the Designer. They are useful for mapping codes to display names, storing static reference data, or providing configuration values that change infrequently.
Navigate to Settings > Lookup Tables to manage tables.
Requires the Operator role or higher.
Creating a Lookup Table
- Click New Table
- Enter a name (e.g. “StoreLocations”, “StatusCodes”)
- Optionally enter a description
- Click Create
The table is created with no data. Click the edit icon to start adding columns and rows.
Editing Table Data
Click the pencil icon on any table to open the inline data editor.
Adding Columns
- Type a column name in the “Column name” field at the bottom of the editor
- Press Enter or click Add Column
- New tables start with
keyandvaluecolumns by default
Adding Rows
Click Add Row to add a new empty row. Click into any cell to edit its value.
Removing Columns and Rows
- Click the X icon next to a column header to remove the column
- Hover over a row and click the delete icon to remove it
Saving Changes
Click Save to persist your changes. Click Cancel to discard unsaved edits.
Using LOOKUP() in Expressions
Reference a lookup table from any data-bound element in the Designer using the LOOKUP() function:
LOOKUP("StoreLocations", key_column, match_value, return_column)| Parameter | Description |
|---|---|
table_name | The name of the lookup table |
key_column | The column to search in |
match_value | The value to find (can be a data binding) |
return_column | The column to return the value from |
Example
Given a table named “StatusCodes”:
| code | label | colour |
|---|---|---|
| OK | Operational | green |
| WARN | Warning | amber |
| ERR | Error | red |
The expression LOOKUP("StatusCodes", "code", ${status}, "label") would return “Operational” when the bound status value is “OK”.
Deleting a Table
Click the delete icon on any table in the list. A confirmation prompt appears before the table is permanently removed.
Deleting a lookup table causes any LOOKUP() expressions referencing it to return empty values. Check your scenes before deleting.