Manage Objects with Subpages – Global Flow

Intro

Use the global flow with subitems if you want to let the user navigate freely between the main page and multiple subpages in one editing session (one object, such as a sales order as the main object with sales order items as closely related subpages). In this case, the subpages do not have an explicit Create or Save button. Any changes to the subpages are saved automatically in the background (temporary save). After editing, the user has to navigate back to the main page to save or discard the changes to all subpages. If you want to keep unsaved changes, you need to implement draft handling.

Manage objects with subpages (global flow in the right-hand column)

Manage objects with subpages (global flow in the right-hand column)

The sections below describe the global flow with and without draft handling.

Global Flow With Draft

Adding a Subitem

The following examples show how to create a new item via the detail screen. You can also use a dialog for creating items. For more information, see Manage Parts of an Object.

Actions available on the subpage:

Actions available on the main page:

Global flow - Adding a subitem in display mode

Global flow - Adding a subitem in display mode

Global flow - Adding a subitem in edit mode

Global flow - Adding a subitem in edit mode

Editing Subitems

The following examples show how to switch to edit mode on the main page and on the subpage.

Actions available on the subpage:

Actions available on the main page:

For more information about displaying items in tables, see:

Global flow - Editing on the main page

Global flow - Editing on the main page

Global flow - Editing on a subpage

Global flow - Editing on a subpage

Message Handling

On the main page, validation is triggered when the user clicks Save. If errors occur, the message popover appears. The popover displays errors on the main page and error summaries for all related subpages. To help the user find the item and solve the issue, an indicator in the line item of the table shows which subpage contains errors.

In the global flow errors are grouped by section/ tab and the form field validation is visible on all pages. The main page in the global edit flow shows all errors of the main page and its sub-items in the message pop-over. Errors from the page which is visible (actual main page) will be displayed, with details if available. Errors from the sub-items are aggregated per sub-item.

On subpages, validation only applies for the active screen and is executed on focus out, as the Save action is not available. If errors occur, the message popover appears, which lists any errors on the active subpage. Any errors on the main page and other subpages are shown only on the popover for the main page, and not on each related subpage. For more information about the messaging, see message handling.

Global flow - Message handling

Global flow - Message handling

[internal_only]If you currently are on a sub-item you won’t be able to see the errors on the main page. If you need to be able to see the errors of the main page on sub-item level, you can enable this behavior.[/internal_only]

Deleting a Subitem

The global flow allows the user to delete items on the main page and on the subpages in both display and edit modes. If the user clicks Delete, a Delete dialog appears prompting the user to confirm the deletion. This confirmation is necessary to avoid accidental deletion. Afterwards, a message toast confirms that the item has been deleted successfully. The object itself switches into edit mode and the user needs to save the changes.

Global flow - Deleting a subitem on the subpage in display mode

Global flow - Deleting a subitem on the subpage in display mode

Due to technical constraints, the global flow has certain limitations or deviations from the guidelines when integrating message and draft handling. These limitations include:

  • Indicators such as “Modified” cannot be shown in the table on the main page.
  • Error messages such as “Contains errors” cannot be summarized in the message popover.

These known issues appear only when using draft handling and will be fixed as soon as possible.

Global Flow Without Draft

If the global flow is used without draft handling, the interaction stays the same, but the data remains in a “dirty state” until the user actively saves on the main page. This means that data could possibly be lost during navigation between subpages and main page. Therefore we highly recommend using the local flow instead.

Resources

Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.

Elements and Controls

Implementation

Visual Design

  • Form (visual design specification)