Dear community,
after spending a couple of weeks on that issue, I am hoping to find help here. I am trying to write an HCP-App that connects to an C4C system via OData. It needs to be an read & write scenario which makes it a little bit more difficult.
What I did so far:
- Create a destination
- Create an application from a Master/Detail template
- Adjust the views
- Write a new function that triggers a create on the model
I figured out that the C4C system cannot deal with the sap.ui.model.odata.v2.ODataModel because of the $batch calls it triggers. I tried using this.getModel().setUseBatch(false); in the Component.js, however, this results in a HTTP error 500 from the C4C system. Using sap.ui.model.odata.ODataModel, on the other hand, results in simple calls like this.getOwnerComponent().getModel().metadataLoaded() throwing an error, because the metadataLoaded() function is not implemented in the v1 model.
At this point, I am stuck. I would appreciate any help on the incident.
All the best,
Florian