Table Rows

Discover / Frameworks / SAP Fiori Elements / Tables and Lists / Table Rows
information

No longer maintained, this article reflects the SAPUI5 version 1.136 release of SAP Fiori Elements for OData V2 and SAP Fiori Elements for OData V4.

To explore the design capabilities of SAP Fiori elements for OData V4 and the various options for the building blocks, and to experiment with their behavior – both standalone and when used in standard floorplans or custom pages, see: the SAP Fiori Development Portal.

information

No longer maintained, this article reflects the SAPUI5 version 1.136 release of SAP Fiori Elements for OData V2 and SAP Fiori Elements for OData V4.

For information on the latest release of both versions of SAP Fiori Elements, see: What's New in SAPUI5 documentation.

To explore the design capabilities of SAP Fiori elements for OData V4 and the various options for the building blocks, and to experiment with their behavior – both standalone and when used in standard floorplans or custom pages, see: the SAP Fiori Development Portal.

Intro

The SAP Fiori elements templates support the features and settings for table rows or inline items detailed below.

For design information see the table guidelines, starting with Table Overview, and the links below.

Feature Availability

<div> <div></div> <div></div> </div> <div> <div> <h4 id="actions">Actions</h4> </div> <div> <h4 id="availability">Availability</h4> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23empty-row-for-data-entry-in-create-and-edit-modes">Empty Row for Data Entry in Create and Edit Modes</a></div> <div> <p>Available in an object page for responsive and grid tables: the table displays an empty row for data entry.</p> <p>You can turn it off for edit mode.</p> </div> </div> <div> <div>Editable Multi-Input Fields</div> <div>Available in an object page in edit mode for all tables.</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23inline-actions">Inline Actions</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23direct-edit">Direct Edit</a></div> <div>Available for responsive and grid tables with SAP Fiori elements for OData V2</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23conditional-enablement-of-navigation-buttons">Conditional Enablement of Navigation Buttons</a></div> <div> <p>For list report and object pages:</p> <ul> <li>Available with SAP Fiori elements for OData V4</li> <li>Requires an extension with SAP Fiori elements for OData V2</li> </ul> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23item-selection">Single Item Selection</a></div> <div>Default</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23item-selection">Multiple Item Selection</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23item-selection">Item Limit for Multiple Selection</a></div> <div>200 by default for grid tables, analytical tables and tree tables. You can change the limit.</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23delete">Delete</a></div> <div>Available in responsive tables only</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23custom-actions">Custom Actions</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23messages-for-critical-actions">Messages for Critical Actions</a></div> <div>Default, replace the generic placeholder text with meaningful text for the user.</div> </div> <div> <div> <h4 id="display">Display</h4> </div> <div> <h4 id="availability-1">Availability</h4> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23read-only-field">Restrict Field to Read Only in a Table</a></div> <div>Available with SAP Fiori elements for OData V4</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23editing-status">Editing Status</a></div> <div>For draft-enabled applications, displayed by default in the responsive table and grid table in a list report. With SAP Fiori elements for OData V4, it is also displayed by default in a tree table.</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23rating-indicator">Rating Indicator</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23progress-indicator">Progress Indicator</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23quick-contact-view">Quick Contact View</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23avatar-and-other-images">Avatar</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23avatar-and-other-images">Avatar Tooltip</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23avatar-and-other-images">Other Images</a></div> <div>Available with live box mode only</div> </div> <div> <div>Table Cells with Multiple Values</div> <div> <p>Available with SAP Fiori elements for OData V4</p> <p>In edit mode, the multiple values fields are editable in object page tables.</p> <p>The cells that displayed multiple values in the table onscreen are empty when exported to a spreadsheet.</p> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23highlighting-line-items">Highlighting New Line Items</a></div> <div> <p>Available with SAP Fiori elements for OData V2</p> <p>Default with SAP Fiori elements for OData V4 for grid and responsive tables in draft-enabled applications</p> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23highlighting-line-items">Highlighting Line Items Based on Criticality</a></div> <div>Available</div> </div> <div> <div> <h4 id="responsive-table-only">Responsive Table Only</h4> </div> <div> <h4 id="availability-2">Availability</h4> </div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23multiple-fields-in-a-single-column">Multiple Fields in a Single Column</a></div> <div>Available</div> </div> <div> <div><a href="https%3A%2F%2Fwww.sap.com%2Fdesign-system%2Ffiori-design-web%2Fdiscover%2Fframeworks%2Fsap-fiori-elements%2Ftables-and-lists%2Ftable-rows-sap-fiori-elements-2%23smart-micro-chart">Smart Micro Chart</a></div> <div>Available</div> </div>

Actions

Empty Row for Data Entry in Create and Edit Modes

With this feature, when the object page is in create or edit mode, responsive tables and grid tables display one empty row where the users can enter data for a new subobject.

The empty row:

With SAP Fiori elements for OData V4, you can set the empty row to be deletable.

If the users delete all the empty rows in the table, a new one is added so they can continue data entry.

An empty row is displayed in the responsive table in create or edit mode

An empty row is displayed in the responsive table in create or edit mode

Automatic Creation of a New Empty Row

After users start to enter data in one field in the empty row, a new empty row is added underneath it so they can continue data entry for either one column or one row at a time.

The row with data in one field:

If users do not enter data in a new empty row, it is removed when the users save.

After the user starts entering data in the empty row, a new one is displayed

After the user starts entering data in the empty row, a new one is displayed

Drafts Saved for Rows

A draft for a once empty row is saved after the users:

Enablement Options

In draft-enabled applications, with both versions of SAP Fiori elements, you can enable or disable this feature for:

When settings are made at both application and table levels, the table setting takes priority.

Additionally, with SAP Fiori elements for OData V2, you can enable or disable the feature at the object page level. When the settings are made at application, object page, and table levels, the setting at the most granular level takes priority, as follows: table, object page, application.

User-Enabled Creation of Empty Rows in Edit Mode

In edit mode, you can turn off the default creation of empty rows for tables whose maintenance mostly requires updating data in existing rows.

If the users want to create additional rows, the Create button lets them enable the automatic creation of one empty row.

On first click, the Create button creates the empty row. On subsequent clicks, the Create button moves the focus to the first editable field in the first empty table row. After the users save their changes, the automatic creation of empty rows is turned off.

Additional Settings

When you enable the empty row creation, for the empty row, you can also set:

Mandatory Fields

In create and edit modes, both versions of SAP Fiori elements guide users in completing the required fields for an empty row, as follows:

guideline

Replace the placeholder text to specify the value to enter with wording more meaningful to the users, for example, “Enter a delivery date.

You can do this in the i18n file for the application.

For more information see: Replacing Placeholder Text (SAP Fiori Elements).

Inline Actions

You can define actions for table rows or inline items. The action types can be:

When a page contains a grid table, an analytical table, or tree table that leads to object or subobject pages, users can navigate to the object or subject page at row level. The Show Detail button is not displayed in these tables. Instead, users can click the navigation indicator: :icon-navigation-right-arrow.

Direct Edit

You can enable this action to let users navigate from the table row to the corresponding object page in edit mode with the Edit icon :icon-editwith SAP Fiori elements for OData V2.

This feature is available for responsive and grid tables. When it’s enabled, the object page footer displays the Save and Next button.

For more information, see:

Conditional Enablement of Navigation Buttons

In list reports and object pages:

For example, you can enable the Generate Purchase Order button only for sales orders with the completed status.

guideline
Implement this feature only when the way to enable the button is obvious to end users.

Item Selection

Both versions of SAP Fiori elements allow you to determine whether users can select:

When the selection of multiple rows is enabled for a table, both versions of SAP Fiori elements have the following defaults that you can change:

SAP Fiori Elements for OData V2

By default, single selection is enabled for a table. You can enable multiple item selection, known by application developers as multiselect.

SAP Fiori Elements for OData V4

With the default auto mode, the application checks whether any table toolbar actions depend on item selection to be enabled. If not:

Instead, you can enable one of the following selection modes:

warning

When you enable multiple selection for the table, do not enable a delete action in the table rows. The application will fail to load when both these features are enabled.

Instead, enable a delete action for the table. The delete action is then available in the table toolbar.

For more information, see:

hint

For more information, refer the development team to:

Delete

In responsive tables only, you can:

In support of best design practices, SAP Fiori elements does not allow you to combine an inline delete action with a central delete action in the toolbar.

For more information, see Delete Single Item Rows.

Custom Actions

You can define custom inline actions.

Because custom inline actions are grouped, you cannot control their exact display order. However, you can control which columns display the groups.

Messages for Critical Actions

For actions that you set as critical, you can display one of the following after the user triggers the action:

Also, the backend can require a confirmation on some actions. In this case, the confirmation message is always shown in a message box.

guideline

Replace the generic placeholder text in the messages with text that’s meaningful to the users, as shown in the example below. You do this by providing the new text to the develoment team for update in the application’s internationalization (i18n) file for the object type.

Ask the development team whether or not the backend requires confirmations for your use case.

Example

<div> <div></div> <div><strong>SAP Fiori elements for OData V2</strong></div> <div><strong>SAP Fiori elements for OData V4</strong></div> </div> <div> <div><strong>Default Text</strong></div> <div> <p>“Do you really want to execute the action <Action Label>?”</p> <p><Action Label> is the label shown on the button.</p> </div> <div>“Do you really want to perform this action?</div> </div> <div> <div><strong>Replacement Text</strong></div> <div>“Are you sure you really want to activate this product?”</div> <div>“Are you sure you really want to activate this product?”</div> </div>

For more information, see UI Text Guidelines for SAP Fiori Apps.

Display

You can include the display features described below in a table row or inline item.

Read-Only Field

With SAP Fiori elements for OData V4, you can set a field to display as read-only in a table, but set it as editable in another place on the UI.

Editing Status

By default, for draft-enabled applications, in a list report, the editing status is displayed:

You can also add the semantic key to the status.

The edit status reflects the state of the object or item in the processing cycle. For example, it can give the user information about the state of completion for the item or whether it’s currently available.

For more information, see Tables.

Rating Indicator

You can add an inline, read-only rating indicator and define a maximum rating of up to five stars. By default, five stars is the maximum.

The number of stars displayed depends on the value of a field in the backend. Decimal values are rounded up or down and when the value after the decimal point falls between x.25 and x.74, it is represented by a half star.

With extensions, you can enable editing of the rating indicator

For more information, see Rating Indicator.

Progress Indicator

You can:

For more information, see Progress Indicator.

Quick Contact View

You can add a quick view to a contact to display key contact details in a popover.

For applications with Microsoft Team integration, the contact quick view card displays options for starting an audio call, video call, or chat in with the contact in Microsoft Teams.

For more information, see Quickview.

Avatar and Other Images

You can display an avatar in the row and set a tooltip that displays when the focus is on the avatar.

warning
Other images are not displayed correctly within the table borders. Only use them with live box mode.
For more information, see Avatar.

Highlighting Line Items

By default, with SAP Fiori elements for OData V4, in draft-enabled applications, a newly created item in draft status is always highlighted in blue in grid and responsive tables.

Highlighting of new line items in draft-enabled applications is available with both SAP Fiori elements for OData V2 and V4.

You can also define highlighting and icons for line items based on their criticality.

After a newly created item is saved, it is highlighted according to the criticality, as follows:

  • Green for success (criticality value 3)
  • Yellow for warning (criticality value 2)
  • Red for error (criticality value 1)
  • No highlighting for no criticality (criticality value 0)

Responsive Table Only

In a responsive table, you can include the display features described below in a table row or inline item.

Multiple Fields in a Single Column

You can combine multiple IDs, descriptions, and action buttons in a single column in a responsive table.

For example, you can display the following in a single column:

  • Company name

  • Company ID

  • Items in Stock

  • Progress Indicator for Items in Stock

  • Overall value of the Items

  • Multiple Action buttons that allow the user to both:

    • Execute an action while staying on the list report page
    • Navigate to other objects and applications

The visibility and position in the table of a column that combines multiple fields can be changed.

Field Labels

By default, with SAP Fiori elements for OData V4, when a column contains a field group with more than one field, the labels for those fields are not displayed.

You can enable the display of a label for each field. Then, the field group label is displayed as the column title in the header.

Limitation on Export to Spreadsheet

When users export a table with a column that contains multiple fields to a spreadsheet, only the first piece of information displayed in the column is exported.