Search Results
Overview
A compact results list meant to sit under a Search input: bind the query's search to the input and the list updates as the visitor types.
Results list driven by a search input (bind the query's search to the input).
When to use
- Global customer search on the home page
- Product finder in a sales app
- Knowledge-base article search
When not to use
- Browsing without a search box: use Cards or Table
- Results with pictures and details: Cards with Compact list and the same search binding
Quick start
- Add a Search input and, below it, Search Results
- Bind Search Results' Data to the entity and set Search = Component state → Search → value
- Set Title field and Subtitle field
- Add On Row Click → Navigate to the record's page
Properties
The field shown as the main text of each item. Defaults to the entity's display field (usually Name or Title).
Example: name
Secondary line, e.g. email or category, to tell similar results apart.
Example: email
Shown when the search matches nothing (and when the query returns no records before typing).
Default: No results.
Data binding
An entity query whose Search is bound to the Search input's value; the server matches text-like fields. 20 results per page with built-in paging. Exposes selectedId and selectedRecord.
Properties that can use dynamic data: 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 selectedId, selectedRecord from the Data Picker → Component state.
Responsive behavior
A single compact column that works on phones.
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
- Results are keyboard-activatable rows named after their title
Examples
Customer finder
Search input: Placeholder “Search customers…” Search Results: Source Customers · Search = Component state → Search → value · Sort: name Title field: name · Subtitle field: email On Row Click: Navigate → Customer details, id = Event → id
Common patterns
- Add a filter “Status not equals archived” so archived records never surface
- Hide the component until something is typed with a visibility rule on the search value
Limitations
- Text fields only are searched
- Same fixed layout as Compact Cards
Troubleshooting
Why: Expected when the query has no other filters
Fix: Add a visibility rule: Component state → Search → value is not empty