<?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: SAPUI5 sap.ui.table.Table: Modify row in Controller in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780082#M233083</link>
    <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;thanks for your reply. The good news: I do not have a syntax error.&lt;/P&gt;&lt;P&gt;But my table get's not update. Do I have to call some kind of "&lt;EM&gt;refresh&lt;/EM&gt;"-method?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 07:59:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-02-18T07:59:33Z</dc:date>
    <item>
      <title>SAPUI5 sap.ui.table.Table: Modify row in Controller</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaq-p/780080</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
  &lt;P&gt;I would like to modify the model in the controller. js by using &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;var oSelectedIndex = oTable.getSelectedIndex();
var row = oTable.getRows()[oSelectedIndex];
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I do not know how to preceed?&lt;/P&gt;
  &lt;P&gt;How can I update the model for the selected row?&lt;/P&gt;
  &lt;P&gt;Many thanks&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Mario &lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 04:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaq-p/780080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-18T04:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 sap.ui.table.Table: Modify row in Controller</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780081#M233082</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/429927/mariomueller01.html"&gt;Mario Mueller&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For UI.Table to update the data you need to follow the below method unlike the normal m.table. first you need to call below to get all selected lines( incase of multiple)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var aSelectedIndices = oTable.getSelectedIndices()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now you loop on the aSelectedIndices and then call the below method&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var oContext = oTable.getContextByIndex(iSelectedIndex);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Once you get the context of that row, get the path and update the property&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var sPath = oContext.getPath();
oContext.getModel().setProperty(sPath +"/PropertyName", sValue);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 05:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780081#M233082</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-02-18T05:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 sap.ui.table.Table: Modify row in Controller</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780082#M233083</link>
      <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;thanks for your reply. The good news: I do not have a syntax error.&lt;/P&gt;&lt;P&gt;But my table get's not update. Do I have to call some kind of "&lt;EM&gt;refresh&lt;/EM&gt;"-method?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 07:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780082#M233083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-18T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 sap.ui.table.Table: Modify row in Controller</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780083#M233084</link>
      <description>&lt;P&gt;sorry; misstake &amp;gt; type&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 08:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780083#M233084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-18T08:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 sap.ui.table.Table: Modify row in Controller</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780084#M233085</link>
      <description>&lt;P&gt;If you call set property it will immediately update the value to the model and the all the controls which have binded to that property&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 08:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-sap-ui-table-table-modify-row-in-controller/qaa-p/780084#M233085</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2019-02-18T08:29:37Z</dc:date>
    </item>
  </channel>
</rss>

