I was just wondering: is it possible to add more destinations/services dynamically in my UI5 application rather than using it in manifest?
For example: let us assume currently I know of a service A that I'm going to use.
So I will add that service, create model in manifest and consume through OData.
But what if in future the requirement changes, and now they want to be able to select system as well, so that the service A from that particular system is selected and data is fetched from that destination only? (Assuming service is same in all systems).
Services defined in the manifest.json help you during initialization of your app.
It shouldn't be a great problem to define a new model at runtime in the controller, e.g.
And set it as new View Model
or change the bindingContext of a Control to it
If you encounter CORS-Problems and have to define destinations in the SAP Cloud Platform Cockpit upfront, then this might be a bit more difficult. But in your case (service is same in all systems) that won't be a problem.