Introduction to SAP Fiori Layouts
Do you recall the golden rule of SAPUI5 development that says "SAP Fiori apps must have an approved UX design."?
After understanding the user and business needs, it comes to the design of the application. The first decision that designers and developers have to make is what overall layout should be used.
This depends a lot on the way the information needs to be presented in the app and how the user will access this information.
Julie meets Carmen to gather more details about the app.
The SAP Fiori Design Guidelines knows two main layouts and three layout variants.
Main layouts are:
- Dynamic Page
- Flexible Column Layouts
Layout variants are:
- Comparison Pattern
- Multi Instance
- Semantic Page
In this lesson we will focus on the two main layouts.
When to use dynamic page layout
Use the dynamic page layout if you are building a freestyle application that uses the dynamic page header and footer toolbar features of SAP Fiori (versions 1.40 and higher)
Do not use the dynamic page layout if you are planning any of the following scenarios:
- Use SAP Fiori elements, such as the list report, analytical list page, overview page, or object page. These elements already incorporate the dynamic page layout.
- Implement an initial page or object page floorplan. These floorplans already incorporate snapping header and footer toolbar features. The behavior is similar to the dynamic page, but the technical foundation is different.
- Display a small amount of information. In this case, use a dialog instead. If you cannot avoid using the dynamic page layout, use letterboxing to mitigate the issue.
When to use flexible page layout
Use the flexible-column layout if you want to create a master-detail or master-detail-detail scenario in which the user can drill down or navigate.
Do not use the flexible-column layout if you are planning any of the following scenarios:
- You want to build a workbench or tools layout. The flexible-column layout is not meant to provide a main column with additional side columns on the left and right or either. If you want to display additional content to enrich the main content and to help users better perform their tasks, use the dynamic side content instead.
- You want to create a dashboard with context-independent pages.
- You want to open multiple instances of the same object type. Use the multi-instance-handling floorplan instead.
- You want to split a single object into multiple columns, or display only a small amount of information.
- You want to embed the SAP Fiori launchpad or overview page into one of the columns.
Things to Remember
The following table should help to decide what layout should be used and what type of question you asked yourself for making a decision.
|Is viewing, inspecting, or editing details on one or several elements from a list of elements an important user requirement?||If so, use the flexible column layout pattern, for example a tracking app.|
|Is inspecting the status of one or more objects important?||If so, use the flexible column layout pattern, for example a tracking app.|
|Are the objects you are inspecting so complex that you require charts to illustrate a point quickly?||If so, you should use a dynamic page app with charts.|
Connect with Marco Rossi
Now that you've learned about the SAP Fiori layouts, put on your thinking cap and help Marco make the right decision in this use case activity.