Data Table
FUIDataTable
A data table is a range of labeled columns and rows used to present numbers, text, or even images. Generally, data tables are a grid layout of columns and rows.
The horizontal scrollable data table with a sticky header and column is available in both compact and regular screen sizes. Alternatively, the data table will be converted to a list report by default in compact width if horizontal scrolling is not available.

Example of data tables on compact (left) and regular screen sizes (right)
- Use data tables when users need to compare multiple attributes across items in a large data set.
- Use data tables in compact screen sizes with horizontal scrolling and sticky headers.
- Don’t use data tables in preview views.
- Don’t use data tables when users don’t need to compare multiple attributes across the items.

Anatomy of the data table on a regular screen

Toolbar with further actions after selecting a few rows in a data table
Add a Data Row
The “+” button, which can appear on the navigation bar or in an inline cell button, allows users to add a new data row to the current data table.
The added data appears at the location following the current order direction rules. For example, if the table is ordered by timestamp, the added row appears as the top row.
The screen scrolls to the location where the added row appears with the highlight background color. The highlight background color then fades away.

Example of a most recently added row at the top of a table

Example of an edit modal after triggering the edit mode from the data table view
In the edit mode, the user can tap on any available data table cell to edit. An active data table cell has a highlighted stroke and text background. Once the user is done editing, they can tap on the “Done” button in the navigation bar to save and exit the in-line edit mode.
If there is an invalid entry, the cell is highlighted in red and a banner with an error message pops up. If the user deselects the cell, the error is still visible with a red underline and a banner with an error message is displayed.

Example of an in-line error message
Currently supported data types include text, duration, time, date, and list picker.

Examples of text, duration, time, date, and list picker data table cells from left to right
Read-Only State
If a data table cell can’t be edited in the in-line editing mode, the cell should be displayed as a read-only data table cell with a grey background. If the user taps on a read-only cell, a toast message pops up indicating that the tapped cell is read-only.

Example of a toast message after tapping on a read-only state data table cell

Example of a data table that has been converted to a list picker
Development: FUIDataTable
SAP Fiori for Android: Data Table
Related Components/Patterns: Table View, List Report, Filter Feedback Bar