title: How to detect selected row in sapui 5 Table and get data from it?
body: <p>Is there any way to detect when I select a row in a dynamic SingleSelect Mode sapui 5 Table?</p>
  <p>Could be by using an event or something similar?</p>
  <p>The thing is... I kind of new using this technology.</p>
  <p>Here is how I am trying to do right now:</p>
  <pre><code>    var oTabla = new sap.m.Table(&quot;tableId&quot;,{
          mode: &quot;SingleSelect&quot;,
          columns: [{
              hAlign: 'Center',
              header: new Text({
                  text: &quot;N° Cuotas&quot;
              })
          }, {
              hAlign: 'Center',
              header: new Text({
                  text: &quot;Código Autorización&quot;
              })
          }, {
              hAlign: 'Center',
              header: new Text({
                  text: &quot;Monto (UF) &quot;
              })
          }, {
              hAlign: 'Center',
              header: new Text({
                  text: &quot;Monto ($) &quot;
              })
          }]
      });
  </code></pre>
  <p>This table is dynamically created.</p>
  <p>And here is how I'm trying to get the data:</p>
  <pre><code>  var oItem= this.byId(&quot;tableId&quot;).getSelectedItem();
              alert(oItem);
              
  </code></pre>