Learn how to add a new OData service and SAPUI5 model.
To add an OData V2 service using annotations, the new annotation data source has must be added.
-
Right-click on the project main folder, the
webapp
folder, or themanifest.appdescr_variant
file and click Add OData Service > Model. -
After the wizard appears, enter the OData Service name for the service you want to add.
-
Enter the OData Service URI.
-
Choose the OData version of the service you are adding.
-
Enter the OData Service SAPUI5 Model name of the model you want to add.
-
(Optional) Enter settings for the OData Service SAPUI5 Model in the format:
"key1":"value1","key2":"value2",
. -
(Optional) Choose whether to add an annotation.
If you choose yes, provide the following information:
-
Enter the OData Annotation Data Source name.
-
Enter the OData Annotation Data Source URI.
-
(Optional) Enter settings for the annotation in the format:
"key1":"value1","key2":"value2",
.
-
-
Click Finish to save your changes.