on 2025 Feb 11 2:26 PM
Hi,
We have a requirement to create a SAPUI5 application that will display data from multiple mainly non-related tables using OData V2. We'll be using VSCode to create the UI5 application.
Is it better to:
a) create a separate OData service for each table and have multiple datasources in the manifest.json
or
b) one OData service containing multiple entities (each entity would relate to an individual DB table) ?
If the answer is b) then how do we structure the OData service and related manifest.json to retrieve all the required data from the one OData service?
All help greatly appreciated.
Request clarification before answering.
I would go b.
If the answer is b) then how do we structure the OData service and related manifest.json to retrieve all the required data from the one OData service?
don't know what you are talking
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok - for example if I have an odata service xyz.srv and it contains 2 entity sets bankmasterSet and vendormasterSet with their GetEntity and GetEntitySet queries etc fully generated but they have no associations.
In the UI5 application, the manifest.json file references the odata service xyz.srv in the datasource section and the models section. When the service is called by the UI5 application, is the data for both entity sets automatically retrieved from the backend or is it just one entity set that is retrieved?
Another way of asking is, if I have data on 2 or more database tables, in the SAP backend, that have no relationship to each other, can I use just one OData service to expose the data to a UI5 application or do I need to create an OData service for each DB table?
> When the service is called by the UI5 application, is the data for both entity sets automatically retrieved from the backend or is it just one entity set that is retrieved?
depends on the implementation of the app, possibly yes. here too, take a look at the documentation, keyword batch.
> can I use just one OData service to expose the data to a UI5 application or do I need to create an OData service for each DB table?
if you ask me, there should be one service responsible for an app. it contains everything. some people think differently, i would like to keep the complexity and responsibilities to a minimum. but here too there is documentation and a service for every table is absolute nonsense.
User | Count |
---|---|
88 | |
9 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.