I made a Master-Detail application in Web IDE with SAPUI5.
I connected my application to an OData service (V2). The connection parameters have been stored in manifest.json
.
I want to prevent my UI5 application from using $batch
requests.
I know how to use the following code to disable batch request for a particular request:
var oDataModel = this.getModel(); // sap.ui.model.odata.v2.ODataModel
oDataModel.setUseBatch(false);
But the problem is that I can not use this in onInit
function.
Can I set some parameter in manifest.json
to disable batch request in general and even when the program is loading it does not use $batch
?