Skip to Content
0
Former Member
Jul 21, 2014 at 11:54 AM

How to solve this bug HTTP request failed404,Not Found

90 Views

Hi experts

I've problem in binding the back-end data with sapui5 element.

For that i'm using OData service call ( url :' /sap/opu/odata/sap/Z_DEMO2_SRV/')

onInit: function() {

var oModel = new sap.ui.model.odata.ODataModel( "/sap/opu/odata/sap/Z_DEMO2_SRV",false, "username", "password");

//Set the Model to the Table

var oTable = sap.ui.getCore().byId("bankTableID");

oTable.setModel(oModel);

alert(oModel);

// Filter the DATA

var FilterOperator = sap.ui.model.FilterOperator;

var filter = new sap.ui.model.Filter("MANDT",FilterOperator.EQ, "AR");

//Bind the Data to the Table

oTable.bindRows("/rajesh");

},

i've included the error screen shot in attachment.

Attachments

untitled.jpg (134.5 kB)
untitled.jpg (134.5 kB)