Hi,
I am also disappointed by the lack of a .getData() method on an ODataModel Object.
The only workaround I've found is to build an JSONModel from the ODataModel.
Please try the following code:
var url = currentContext + "/CorpBudgetOpBudgetHeader/CorpBudgetOpBudgetLinesSet"; var oModel = new sap.ui.model.odata.ODataModel(serviceUrl, true); var oModelJson = new sap.ui.model.json.JSONModel(); oModel.read(url, null, null, false, function(oData, oResponse) { oModelJson.setData(oData); }, null); var data = oModelJson.getData();
Cheers