Using Variant Management

Objectives
After completing this lesson, you will be able to:

After completing this lesson, you will be able to:

  • Use variant management

Table Personalization

Table personalization can be used to modify the display and settings of a table. It is a UI pattern that is used to change one or more of the following attributes:

  • Visibility of columns
  • Order of columns
  • Sorting
  • Grouping

A table personalization dialog is opened via Settings on the right-hand side of the table toolbar. To show or hide columns, the user only needs to select or deselect the check-boxes of the respective list item. The order of the columns can also be altered. Table personalization also allows the user to sort the table content according to the columns that are chosen and in a specific order.

Grouping enables the user to group the table data by one or more columns. The sort and group features can all be applied to a table simultaneously.

Filter Bar

The filter bar filters item lists and tables according to various filter criteria. It can be collapsed or expanded.

Choose Adapt Filters to open the filter dialog. The filter dialog is the central component that shows all filters, allowing the user to add filters or remove them. Filters are arranged into their respective filter groups. The user can search for a specific filter by name in the search bar at the top.

The first group is called Basic and contains the preset filters that come with the app. A check-box next to each filter enables the user to show the corresponding filter on the expanded filter bar. If the check-box is selected, the filter is shown on the expanded filter bar. If the check-box is not selected, the filter is only visible within the filter dialog. In both cases, the filter is active if a value is entered.

Variant Management

Variants store view settings, such as filter settings or control parameters.

The filter settings consist of filter parameters, selection fields, and the layout of filters. They are set within the filter bar.

Control parameters are the sort order, group settings, column visibility, and the layout of a table or chart. They are set within the toolbar of the control.

Note
On the user interface, variants are called views, which is better understood by end users.

Variant management can be used to:

  • Save and load different filter settings to find the relevant data.
  • Save and load different layouts, for example, for a table, to display data in different views.

When saving a new view, you can make the following settings:

  • View: Name of the new view (required field).
  • Set as Default: If checked, the new view is the new default view.
  • Public: If checked, the new view is available to everyone who has access to the app.
  • Apply Automatically: If checked, the view is applied immediately whenever it is selected. The user does not need to select Go in the filter bar.

Adapt Filter Settings and Table Parameters

Business Scenario

In this exercise, you will personalize the predefined app that you added as a tile to the SAP Fiori launchpad as shown in a previous demonstration. You will filter the data displayed in the table and adjust the table parameters. Your adjustments will be saved as a separate view using variant management.

Steps

  1. Start the predefined app Manage Customers from the SAP Fiori launchpad.

  2. Remove the column Form of address from the displayed table and add the columns Country and Region to the table.

  3. Make sure that the column Customer Number is the last column in the table. In addition, the Region column should be displayed directly before the Country column.

  4. Group the customers displayed in the table by City.

  5. Sort the customers displayed in the table by ascending Customer name.

  6. Add the following filter to the filter bar: Only customers whose Customer Number is greater than or equal to 100 should be displayed.

  7. Save your settings as a separate view with the name View Student 01. Set the following properties for the view: Set as Default, Public, and Apply Automatically.

Save progress to your learning plan by logging in or creating an account