title: SAPUI5: Refreshing table contents after oData.read
body: <p>Im building an application with two textboxes, a button and a table. On pressing the button, an array of filters is composed from the contents of the textboxes and sent to my oData service in a read request. Right now, when one record is returned (as it shows in the console), the table will not be updated. What am I missing?</p>
  
  <p>This is the table:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;Table id="PLTab" items="{/ORDSET}"&gt;
    &lt;headerToolbar&gt;
      &lt;Toolbar&gt;
        &lt;Title text="Planned Orders" level="H2" /&gt;
      &lt;/Toolbar&gt;
    &lt;/headerToolbar&gt;
    &lt;columns&gt;
      &lt;Column&gt;
        &lt;Text text="Product" /&gt;
      &lt;/Column&gt;
      &lt;Column&gt;
        &lt;Text text="Planned Order" /&gt;
      &lt;/Column&gt;
      &lt;Column&gt;
        &lt;Text text="Production Planner" /&gt;
      &lt;/Column&gt;
    &lt;/columns&gt;
    &lt;items&gt;
      &lt;ColumnListItem&gt;
        &lt;cells&gt;
          &lt;ObjectIdentifier title="{Maktx}" text="{Matnr}" /&gt;
          &lt;Text text="{Ordno}" /&gt;
          &lt;Text text="{Name}" /&gt;
        &lt;/cells&gt;
      &lt;/ColumnListItem&gt;
    &lt;/items&gt;
  &lt;/Table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And this is the relevant part of the controller:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>onInit: function() {
      var oModel = this.getOwnerComponent().getModel("path");
      oModel.refresh(true);
      this.getView().setModel(oModel);
    },
  
  
    openOrders: function(oEvent) {
      var PLFilters = [];
      PLFilters.push(new sap.ui.model.Filter({
        path: "Matnr",
        operator: sap.ui.model.FilterOperator.EQ,
        value1: this.getView().byId("Product").getValue()
      }));
      PLFilters.push(new sap.ui.model.Filter({
        path: "Locno",
        operator: sap.ui.model.FilterOperator.EQ,
        value1: this.getView().byId("Location").getValue()
      }));
  
  
      var oModel = this.getOwnerComponent().getModel("path");
      oModel.read("/ORDSET", {
        filters: PLFilters,
        success: function(oData, oResponse) {
          console.log(oData);
        }
      });
    }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks &amp; regards,</p>
  
  <p>Max</p>