<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SmartTable - Get the Selected Table Row Data in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046940#M4502133</link>
    <description>&lt;P&gt;Thanks Ravi&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 13:18:50 GMT</pubDate>
    <dc:creator>former_member252677</dc:creator>
    <dc:date>2019-11-19T13:18:50Z</dc:date>
    <item>
      <title>SmartTable - Get the Selected Table Row Data</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaq-p/12046937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Unable to get the Selected Row Data in a SmartTable .Tried to implement the fieldChange event but it is not even trigger when any checkbox is selected.&lt;/P&gt;
  &lt;P&gt;On XML View fieldChange="onFieldChange"&lt;/P&gt;
  &lt;P&gt;Controller: onFieldChange : function(oEvent){ debugger; }&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1744853-smarttablexml.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Also Tried -&amp;gt;Button Press event&lt;/P&gt;
  &lt;P&gt;var ob = this.getView().byId("LineItemsSmartTable").getTable().getSelectedIndices(); -&amp;gt; I am getting the list of Selected index in an array but from index how to get the complete row data.&lt;/P&gt;
  &lt;P&gt;The Requirement is on click of submit button process the selected records as a post call.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1744850-smarttable.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 10:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaq-p/12046937</guid>
      <dc:creator>former_member252677</dc:creator>
      <dc:date>2019-11-19T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable - Get the Selected Table Row Data</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046938#M4502131</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/201179/sunildas3.html"&gt;sunil das&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Field change event is not for that it's when the smartfiled data is changed.. What you are looking for is selection change..&lt;/P&gt;&lt;P&gt;You can ddo it is in 2 ways&lt;/P&gt;&lt;P&gt;1. Pass the UI.table inside the smart table and use the SelectionChange event.&lt;/P&gt;&lt;P&gt;2. or get the reference of the smart table in on int or after rendering and get the this.oSmartTable.getTable().attachRowSelectionChange&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 10:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046938#M4502131</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-11-19T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable - Get the Selected Table Row Data</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046939#M4502132</link>
      <description>&lt;P&gt;Hi  Sunil,&lt;/P&gt;&lt;P&gt;Use below code,on button press event.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var oItems = oTable.getSelectedIndices();
      for (var i = 0; i &amp;lt; oItems.length; i++) {
        j = oItems[i];
        var l_ekgrp = oTable.getContextByIndex(j)
          .getProperty("Docnum");
        // and fetch rest of fields in similar pattern
 
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And as &lt;A href="https://answers.sap.com/users/8617/maheshkumarpalavalli.html"&gt;Mahesh Kumar Palavalli&lt;/A&gt; mentioned Field change event is not required in your case. It is for data change of fields.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 11:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046939#M4502132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-19T11:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: SmartTable - Get the Selected Table Row Data</title>
      <link>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046940#M4502133</link>
      <description>&lt;P&gt;Thanks Ravi&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smarttable-get-the-selected-table-row-data/qaa-p/12046940#M4502133</guid>
      <dc:creator>former_member252677</dc:creator>
      <dc:date>2019-11-19T13:18:50Z</dc:date>
    </item>
  </channel>
</rss>

