Hi,
I was making a read function for my oDatamodel, but after running my application i get this error when i check my console in Chrome:
The following problem occurred: no handler for data -
This is the function which contains the read function. For some extra information i am using the sap.ui.model.odata.v2.ODataModel for this application.
_downloadFile: function() { var oModel = this.getView().getModel(); var selectedDocument = this.getView().getBindingContext().getObject(); var sRead ="/PDFSet(MyDocKey='',SCObjid='',AcadYear='',AcadPeriod='',Cokey='"+selectedDocument.Cokey+"',Cotyp='"+selectedDocument.Cotyp+"')/$value"; oModel.read(sRead, { success: function(oData, oResponse){ console.log(".. oModel.read success: " + oData.results.length); console.log(oData); console.log(oResponse); }, error: function(oError){ console.log(".. oModel.read failed"); var errorObj1 = JSON.parse(oError.responseText); console.log(errorObj1); } }); }
I hope you can help me figure out what i am missing or doing wrong.
Kind Regards,
Arun