title: How to get all values from table
body: <p>I try to create simple SAP FIORI application, but I have a problem with retrieving data from table displayed in Detail view.</p>
  <p>I created Master-Master-Detail app using SAP best practice template (including routing etc.) + XML views.</p>
  <p>Table definition in <code>Detail.view.xml</code>:</p>
  <pre><code>&lt;Table id=&quot;Chars&quot; inset=&quot;false&quot; items=&quot;{CharSet}&quot;&gt;
    &lt;columns&gt; ... &lt;/columns&gt;
    &lt;items&gt;
      &lt;ColumnListItem&gt;
        &lt;cells&gt;
          &lt;ObjectIdentifier text=&quot;{CharNo}&quot;/&gt;
          &lt;SegmentedButton selectedButton=&quot;none&quot; visible=&quot;{isBool}&quot;&gt;
            &lt;Button icon=&quot;sap-icon://accept&quot; id=&quot;sbOK&quot; text=&quot;OK&quot;/&gt;
            &lt;Button icon=&quot;sap-icon://sys-cancel&quot; id=&quot;sbNOK&quot; text=&quot;Not OK&quot;/&gt;
          &lt;/SegmentedButton&gt;
        &lt;/cells&gt;
      &lt;/ColumnListItem&gt;
    &lt;/items&gt;
  &lt;/table&gt;
  </code></pre>
  <p>I'm trying to get displayed data and selected buttons in <code>onSubmit</code> function in <code>Detail.controller.js</code>, but each code syntax, that I tried results with an error like:</p>
  <blockquote>
  <p><em>Uncaught TypeError: oTable.getContextByIndex is not a function</em></p>
  </blockquote>
  <p>The only one, that works is function, that returns row count of table:</p>
  <pre><code>var rowCount = this.getView().byId(&quot;Chars&quot;).getBinding(&quot;items&quot;).getLength();
  </code></pre>
  <p>How to get selected buttons from all rows of table?</p>