Preview

The preview is a pane that displays the visual application preview based on the components used in the application tree when creating an application.

app designer user interface preview

In the App Designer preview, you can see a preview of your application. Run a preview by selecting Run in Designer in the preview toolbar. If you activated the preview and edited your application, update the preview by selecting Activate in the shell bar.

Preview toolbar

Build Mode

Build mode allows users to test visual changes without activating the application. It operates solely on the front end, ensuring that no changes are saved permanently. This mode proves invaluable for tasks like adjusting button dimensions and previewing outputs without the need for activation.

Display and version compatibility

The content displayed in build mode is dependent on the UI5 version selected for the app. If the user changes the version, Build mode transitions to the new version, rendering content accordingly. The same principle applies to the selected theme; content is displayed in the chosen theme. Any change in theme selection results in an immediate update in content appearance.

Design mode

In Build mode, all interactive actions are disabled. For example, selecting a button that would normally trigger a pop-up will not have any effect in this mode.

Build mode exclusively supports only OpenUI5 components. All stylesheets within the application are not utilized during the build mode rendering. Also, you will be able to see the binding source but not the data generated from the binding.

To render the content of the tree, based on the selected object:

  1. Select the component you would like to render.

  2. Activate Build Mode.

    This will create a new tab in the preview pane displaying the selected component.

app designer build mode preview

This feature becomes useful when dealing with components like sap.m.MessagePopover, sap.m.MessagePopover and other components that can be previewed only when the application is running. Here is a list of the current components which are available on Build Mode.

  • sap.m.MessagePopover

  • sap.m.Popover

  • sap.m.ResponsivePopover

  • sap.m.ActionSheet

  • sap.m.QuickView

  • sap.f.DynamicPage

  • sap.m.SelectDialog

  • sap.m.TableSelectDialog

  • sap.m.ViewSettingsDialog

  • sap.m.BusyDialog

  • sap.m.LightBox

  • sap.m.Dialog

Here is an example of one of the above components being selected and then viewed in Build Mode.

app designer build mode dialog

If you are using multiple components which are listed above, and you want to view them in Build Mode, simply select the component in the application tree and then activate Build Mode.

Run in Designer

When running a preview, you can choose between different settings to test the look of your application on different devices. Select > Settings to access the preview settings.

  • Screen size

  • Orientation

  • Background image

  • Type (Application/Launchpad)

    • Application must be filled if the Type is Launchpad

  • Outline UI5 Elements will highlight the components in the preview pane that are currently in use.

The preview settings only apply to the preview in the preview pane.

Header

Define the HTML5 header for your application.

Stylesheet

Add custom CSS to your application. SCSS is also supported, which is then compiled into CSS at runtime.

Web App Manifest

The web app manifest is a JSON file that contains essential information about a web application, such as its name, icons, start URL, and display mode. It helps define the behavior and appearance of the web application when installed on a user’s device.

The most common use for a web application manifest is to provide information that the browser needs to install a progressive web app (PWA) on a device, such as the application’s name and icon.

The middle mouse button can close the above tabs.

Script Search and ToDo List

Open the Search and ToDo List pane and search for scripts or todos in the code of the application.

Search

Search throughout all the application code. Allows replacing the searched queries with a given value.

TODO

Will list all places in scripts that have a TODO comment.

Writing '//TODO your description' anywhere within your application code will show within the TODO list search results.
Attribute Search

Searches components used in your application. You can search by Object Type and Attribute value (e.g. visible).

Display data flow

Display data flows for APIs and UI5 models.

Use this to quickly go to different components within your application. You can see where APIs are triggered, for example, within a button.

app designer preview dataflows

See where resources are used in the application and how they are triggered.

Close all open tabs by selecting the button.