Make changes to the UI elements of the adaptation project.
SAPUI5 adaptation project uses the editing capabilities of the SAPUI5 Visual Editor tool. The SAPUI5 Visual 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.
If you have created your project with Safe Mode, you cannot change properties, add fragments, or add controller extensions. To turn off Safe Mode, deselect the Safe Mode switch in the Visual Editor. Note once you switch it off, you cannot switch it on again.
The SAPUI5 Visual Editor will show you your project using the SAPUI5 version that you have set during generation. You can preview your project using another SAPUI5 version by setting it in the project`s settings and relaunch SAPUI5 Visual Editor. Perform the following steps:
Open the
ui5.yaml
file in the root of your project.Find the
framework/version
parameter and change its value to point to the desired SAPUI5 version.Find the
ui5/version
property and change its value to the same desired SAPUI5 version.Find the
ui5/url
property and change its value to point to the URL for the same desired SAPUI5 version.Do not change other settings in this file because it will cause errors in your project.
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 floorplan and the SAPUI5 version. For more information, see Quick Actions Availablity Matrix
The buttons on the SAPUI5 Visual Editor toolbar allow you to:
-
Navigate through and preview the application using the Navigation mode.
-
Change the application using the Edit 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 same if you click a UI element in the Canvas. 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.
-
Expand and collapse the panes to the right and left of the canvas.
- In your workspace, еxpand the
webapp
folder and right click themanifest.appdescr_variant
file and choose Open SAPUI5 Visual Editor. SAPUI5 Visual Editor launches and the application loads in the editor for you to make the changes when you switch to Edit mode from Navigation mode. - Navigate to the page containing the UI element you want to change.
- From the editor header, click Edit.
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 |
|
To embed content, perform the following steps in Embedding Content.
You can preview your project in a separate browser tab. For more information, see Preview the Adaptation Project.