Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Server Error

Hii all,

I am new to this technology. Actually i am trying to bind my table with odata service , which is working fine in gateway server .But it is showing me the error. I have attached the screen shot of my error file in chrome. PFA

Below is the code which i am using in eclipse.

<script>

  sap.ui.localResources("table");

  var view = sap.ui.view({

  id : "idFirst1",

  viewName : "table.First",

  type : sap.ui.core.mvc.ViewType.JS

  });

  view.placeAt("content");

  var tableo = new sap.ui.table.Table({

  title : "Indian Cricket Team",

  visibleRowCount : 5,

  selectionMode : sap.ui.table.SelectionMode.Single

  });

  tableo.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Sr No."}),

  template: new sap.ui.commons.TextView().bindProperty("text", "Srno"),

  width: "200px"

  }));

  tableo.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Player"}),

  template: new sap.ui.commons.TextView().bindProperty("text", "Player"),

  width: "200px"

  }));

  tableo.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Age"}),

  template: new sap.ui.commons.TextView().bindProperty("text", "Age"),

  width: "200px"

  }));

  tableo.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Country"}),

  template: new sap.ui.commons.TextView().bindProperty("text", "Country"),

  width: "200px"

  }));

  tableo.addColumn(new sap.ui.table.Column({

  label: new sap.ui.commons.Label({text: "Email"}),

  template: new sap.ui.commons.TextView().bindProperty("text", "Email"),

  width: "200px"

  }));

  var odatao = new sap.ui.model.odata.ODataModel(

  'http://smax.serveexchange.com:8000/sap/opu/odata/sap/ZODATA_TEAM_SRV'

//* false,

  // "s0122",

  //"Tirupati"

  );

  tableo.setModel(odatao);

  tableo.bindRows("/zteam_enity_typeSet");

  tableo.placeAt("content");

</script>

odataerror.PNG (29853 B)
Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question