<?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: How to retrieve data from multiple selected values in table in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaa-p/12731188#M4778063</link>
    <description>&lt;P&gt;Hello Levi,&lt;/P&gt;&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members.&lt;/P&gt;&lt;P&gt;Feel free to take our Q&amp;amp;A tutorial at &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt; as well, as that will also help you when preparing questions for the community.&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage your readers to respond.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Anne&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 13:41:35 GMT</pubDate>
    <dc:creator>AnnePetteroe</dc:creator>
    <dc:date>2023-07-03T13:41:35Z</dc:date>
    <item>
      <title>How to retrieve data from multiple selected values in table</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaq-p/12731187</link>
      <description>&lt;P&gt;Hey everyone, hope you guys can help me with this.&lt;/P&gt;
  &lt;P&gt;I have been trying to extract the values from the selected values on a table. I used the following the table with &lt;A href="https://sapui5.hana.ondemand.com/sdk/#/entity/sap.ui.table.Table/sample/sap.ui.table.sample.MultiSelectionPlugin" target="_blank"&gt;MultiSelectionPlugin&lt;/A&gt; and I have not been able to get the selected VALUES, only the indices which I can't compare to the original model data because they change if the table is filtered.&lt;/P&gt;
  &lt;P&gt;Is there any way to get an array of objects of the selected items only?&lt;/P&gt;
  &lt;P&gt;From what I've read on other answers getSelectedItems() and getSelectedContexts() would work great but they are to available for me FSR. Also something like getRows() that gives the full array of items already filtered would let me retrieve the data with just the indices gotten from .getSelectedIndices()&lt;/P&gt;
  &lt;P&gt;I'm on UI5 1.96.22&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaq-p/12731187</guid>
      <dc:creator>former_member864565</dc:creator>
      <dc:date>2023-07-03T13:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data from multiple selected values in table</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaa-p/12731188#M4778063</link>
      <description>&lt;P&gt;Hello Levi,&lt;/P&gt;&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members.&lt;/P&gt;&lt;P&gt;Feel free to take our Q&amp;amp;A tutorial at &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt; as well, as that will also help you when preparing questions for the community.&lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage your readers to respond.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Anne&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaa-p/12731188#M4778063</guid>
      <dc:creator>AnnePetteroe</dc:creator>
      <dc:date>2023-07-03T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data from multiple selected values in table</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaa-p/12731189#M4778064</link>
      <description>&lt;P&gt;You can use getSelectedItems(). &lt;/P&gt;&lt;P&gt;Just like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var table = this.getView().byId("myTable");&lt;BR /&gt;var selectedItems = table.getSelectedItems();&lt;BR /&gt;var selectedData = selectedItems .map(function(item) {&lt;BR /&gt;    return item.getBindingContext().getObject();&lt;BR /&gt;});

&lt;/CODE&gt;&lt;/PRE&gt;Does this work for you?</description>
      <pubDate>Thu, 13 Jul 2023 10:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-retrieve-data-from-multiple-selected-values-in-table/qaa-p/12731189#M4778064</guid>
      <dc:creator>Marian_Zeis</dc:creator>
      <dc:date>2023-07-13T10:10:56Z</dc:date>
    </item>
  </channel>
</rss>

