Learn how to adapt the UI of applications using the Adaption Editor.
SAPUI5 adaptation projects use the editing capabilities of the Adaptation Editor. The Adaptation Editor is a design-time editor that provides an intuitive user interface to modify SAPUI5 adaptation project applications. For example, you can add, remove, or move fields and groups. You can also view all properties of the controls in the application and change the configurable properties.
The Adaptation Editor will show your project using the SAPUI5 version that you have set during its generation. Alternatively, you can preview your project using another SAPUI5 version by performing the following steps:
Open the
ui5.yaml
file from the the root folder of your project.Find the
version
property under theui5
node and change its value to the desired SAPUI5 version you want to use for the preview in the Adaptation Editor.
The editor has an Outline pane, a Canvas (application preview), and a Properties pane.
If the application page is based on an SAP Fiori elements list report or an object page floorplan, a quick actions list is displayed above the Properties pane. This quick actions list provides an easy way for you to create the most commonly used adaptation changes. The available actions depend on the page's floorplan and the SAPUI5 version. For more information, see Quick Actions Availability Matrix.
The buttons on the Adaptation Editor toolbar allow you to:
-
Navigate through and preview the application using the Navigation mode.
-
Change the application using the Adaptation Mode mode. In this mode, if you click a UI element in the Canvas, the element is selected and highlighted in the Outline pane and the other way around. You can deselect the UI element by clicking it again in the Canvas. The Properties pane displays the properties of the UI element.
-
Change the device format of the canvas to smartphone, tablet, or desktop view.
If you switch between device formats, your changes are saved to the workspace.
-
In your workspace, еxpand the
webapp
folder, right click themanifest.appdescr_variant
file and choose Open Adaptation Editor.The Adaptation Editor launches in a browser window and the application loads in the editor for you to make the changes when you switch to Adaptation mode or to navigate and preview the application when you switch to Navigation mode.
Visual Studio Code (VS Code) needs to be kept running in order for the editor to work.
-
If you want to change to a different view, switch to Navigation mode, navigate to the new view, and then switch back to Adaptation Mode.
Change properties |
|
Add new fields |
|
Add a new group |
|
Add sections to an object page |
|
Rename fields and groups |
|
Drag and drop fields and groups |
|
Cut and paste fields and groups |
|
Combine fields |
You can combine up to three fields so that they’re displayed in a single line.
|
Split combined fields |
|
Remove fields, groups, or object page sections |
|
After you have made your changes, click Save from the toolbar above the canvas.
Embedding content is performed in the same way as the key user scenario. For more information, see Embedding Content.