title: binding data to table
body: <p>How to bind data to using odata model? I'm getting error like Resource not found for the segment 'results'.</p>
  
  <p>My code:</p>
  
  <pre><code>var url = "/sap/opu/odata/sap/ZODATA_SERVICE_NAME";
          var oModel = new sap.ui.model.odata.ODataModel(url,false);
  
              oModel.read("/EntityDataSet", null, null, true, function(oData) {   
  
              that.getView().setModel(oModel,"student");      
                              },
                                  function(error) {
  
          });
  
  
      &lt;Table  headerDesign="Standard"
  
  items="{student&gt;/results}"
      id="table"  &gt;
                  &lt;columns&gt;
                      &lt;Column  &gt;
                          &lt;header&gt;
                              &lt;Label   text="studentName" width="100%"/&gt;
                          &lt;/header&gt;
                      &lt;/Column&gt;
  
                      &lt;Column &gt;
                          &lt;header&gt;
                              &lt;Label   text="studentRank" width="100%"/&gt;
                          &lt;/header&gt;
                      &lt;/Column&gt;
                  &lt;/columns&gt;
                  &lt;items&gt;
                      &lt;ColumnListItem  &gt;
                          &lt;cells&gt;
                              text="{student&gt;StudentName}"/&gt;
                              text="{student&gt;Rank}"/&gt;
  
                          &lt;/cells&gt;
                      &lt;/ColumnListItem&gt;
                  &lt;/items&gt;
              &lt;/Table&gt;
  </code></pre>