<?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: SAP MDK Data table Save in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-mdk-data-table-save/qaa-p/13617323#M4819574</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The editable data table currently does not support restricting editing to only certain columns.&amp;nbsp; This has come up before and we are looking into adding it in a future release.&amp;nbsp;I would suggest you to check for a feature request&amp;nbsp;here&amp;nbsp;and open a new request if there isn't one there already.&amp;nbsp; We'll review it based on its priority.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Regarding saving the changes you will need to use a rule on your save button to get the section and then call getChanges() to get the list of updated objects.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const sectionedTable = context.getControl('SectionedTable');
const section = sectionedTable.getSection('DataTableSection');
let changedObjects = section.getChanges();​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;You can then loop over the objects and call UpdateEntity for each one either independently or group them together in a ChangeSet.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Feb 2024 15:47:33 GMT</pubDate>
    <dc:creator>bill_froelich</dc:creator>
    <dc:date>2024-02-23T15:47:33Z</dc:date>
    <item>
      <title>SAP MDK Data table Save</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-mdk-data-table-save/qaq-p/13616441</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Created a Data Table and enabled the Inline edit for the entries.Can anyone help with restricting few columns for editing.&lt;/P&gt;&lt;P&gt;Also, How can the table data be posted on "Save" action?Any sample code should be great.&lt;/P&gt;&lt;P&gt;Thanks, Deepthi.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 03:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-mdk-data-table-save/qaq-p/13616441</guid>
      <dc:creator>DeepthiChembeti</dc:creator>
      <dc:date>2024-02-23T03:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAP MDK Data table Save</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-mdk-data-table-save/qaa-p/13617323#M4819574</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The editable data table currently does not support restricting editing to only certain columns.&amp;nbsp; This has come up before and we are looking into adding it in a future release.&amp;nbsp;I would suggest you to check for a feature request&amp;nbsp;here&amp;nbsp;and open a new request if there isn't one there already.&amp;nbsp; We'll review it based on its priority.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Regarding saving the changes you will need to use a rule on your save button to get the section and then call getChanges() to get the list of updated objects.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const sectionedTable = context.getControl('SectionedTable');
const section = sectionedTable.getSection('DataTableSection');
let changedObjects = section.getChanges();​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;You can then loop over the objects and call UpdateEntity for each one either independently or group them together in a ChangeSet.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-mdk-data-table-save/qaa-p/13617323#M4819574</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2024-02-23T15:47:33Z</dc:date>
    </item>
  </channel>
</rss>

