Skip to Content
0
Former Member
Feb 22, 2016 at 06:16 PM

Load oData via javascript

40 Views

Hi folks

I am trying to read some oData with this javascript command:

var oModel = new sap.ui.model.odata.ODataModel("/sap/opu/odata/sap/ZPLAN_CPRAZO_SRV/ZFIORI_ZPLAN_CPRAZO_003Set(DataIni=datetime'2014-09-15T00:00:00',DataFim=datetime'2014-09-17T00:00:00',Obra='1500')", false);

oModel.read("/dataSet", null);

But nothing happens, what is wrong ? how can I catch the data retrieved to use in another javascript commands ?