Add resources to the Master Page
In this step, you add data resources to you application. The data is later displayed on the Master Page.
Procedure
The following steps use the component tree from the component library to navigate to components. Instead of using the component tree you can also search for the component in the search field above the component library. |
-
On the component library, open Resources and drag and drop the RestAPI component onto Resources in the application tree.
-
On the component library, drag and drop the MultiModel component onto Resources in the application tree.
-
Click on the RestAPI component.
-
On the UI object pane, click the Rest API field to open the Rest API library.
-
Search either your API or SAP Example API (Training).
-
Click on the operation /CustomerList with the GET Method.
-
On the properties pane, open the API tab > Response > 200.
-
Click the field that matches the operation of your API and select oMultiModel from the list.
-
On the Model tab, click the setInitLoad field and select online from the list.
-
On the application tree, click oMultiModel.
-
On the UI object pane, click the Model Source field and, on the Binding pop-up window, select a Property from your API. In our example, that is
/getCustomerListResponse
.