<?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: JSON TwoWay Binding Anomaly when in Table. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564376#M124055</link>
    <description>&lt;P&gt;Thanks to the community, there are a couple of ways of solving this. Easiest way (that works in my scenario) is to simply set "growing" to false and this goes away. (Thanks Al Templeton)&lt;/P&gt;
  &lt;P&gt;The other alternative given to me by Boghyon Hoffmann is to provide a key property in the aggregation. (refer to &lt;A href="https://github.com/SAP/openui5/issues/1736#issuecomment-338991820"&gt;#1736 (comment)&lt;/A&gt;)&lt;/P&gt;
  &lt;P&gt;Thanks all,&lt;/P&gt;
  &lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 22:05:51 GMT</pubDate>
    <dc:creator>MattHarding</dc:creator>
    <dc:date>2017-11-02T22:05:51Z</dc:date>
    <item>
      <title>JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaq-p/564371</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/84295-capture2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;I'm experiencing an issue when binding a JSON model to a table that has input enabled and TwoWay binding. To illustrate better, check out the example on &lt;A href="http://jsbin.com/qexupar/edit?html,js,output" target="_blank"&gt;JSBIN Example&lt;/A&gt; and within the output screen, drag each slider and notice the different behaviour.. The top slider works as expected, but the others get stuck as you drag it. When looking at it in more detail, it's like the whole item in the table is getting refreshed each time anything in that row changes.&lt;/P&gt;
  &lt;P&gt;Anyone seen this and/or have any ideas how to stop this happening while keeping TwoWay binding on?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 09:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaq-p/564371</guid>
      <dc:creator>MattHarding</dc:creator>
      <dc:date>2017-11-02T09:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564372#M124051</link>
      <description>&lt;P&gt;Hi Matt&lt;/P&gt;
  &lt;P&gt;Haven't seen this issue before - it might be a glitch in two-way binding to table rows since when you switch to one-way data binding, then the problem goes away...&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;onInit: function(oEvent) {
  var oModel = new JSONModel({
    DiffWeighting: 25, 
    Objectives: [ 
      { Description: "Value 1", Weighting: 25}, 
      { Description: "Value", Weighting: 50}
    ]
  });
  oModel.setDefaultBindingMode(sap.ui.model.BindingMode.OneWay);
  this.getView().setModel(oModel, "Objectives");
}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Chris W&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564372#M124051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-02T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564373#M124052</link>
      <description>&lt;P&gt;Thanks Chris. OneWay binding does fix the behaviour somewhat, but then I have to put change events on all the fields plus other similar issues occur even with OneWay binding with more complex scenarios. e.g. The example is a simplified example I'm dealing but when you throw in OData based ComboBoxes lists, and more input fields; and it has other strange behaviour.&lt;/P&gt;
  &lt;P&gt;Work around (if I have to go down that path), is I'll manage the aggregation programmatically, but I was just hoping I'd done something stupid and someone would tell me what the stupid thing was! &lt;/P&gt;
  &lt;P&gt;BTW - This is happening from 1.44 to the latest UI5 release, but maybe I am the first one to do something like this! - It's a strange design pattern I'm going for based loosely on the following:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.TableEditable/preview" target="test_blank"&gt;https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.TableEditable/preview&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Cheers,&lt;/P&gt;
  &lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564373#M124052</guid>
      <dc:creator>MattHarding</dc:creator>
      <dc:date>2017-11-02T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564374#M124053</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
  &lt;P&gt;I haven't put a slider in a table, but I have put one in a list, using a custom list item. The sliders work fine in this scenario:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;List items="{path: 'Objectives&amp;gt;/Objectives', templateShareable: true}" &amp;gt;
     &amp;lt;CustomListItem&amp;gt;
        &amp;lt;Slider value="{Objectives&amp;gt;Weighting}" min="0" max="100" step="5"/&amp;gt;
     &amp;lt;/CustomListItem&amp;gt;
&amp;lt;/List&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564374#M124053</guid>
      <dc:creator>MikeDoyle</dc:creator>
      <dc:date>2017-11-02T21:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564375#M124054</link>
      <description>&lt;P&gt;Thanks Mike. Found solution so will add that now. Couple of ways of solving it actually.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 22:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564375#M124054</guid>
      <dc:creator>MattHarding</dc:creator>
      <dc:date>2017-11-02T22:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564376#M124055</link>
      <description>&lt;P&gt;Thanks to the community, there are a couple of ways of solving this. Easiest way (that works in my scenario) is to simply set "growing" to false and this goes away. (Thanks Al Templeton)&lt;/P&gt;
  &lt;P&gt;The other alternative given to me by Boghyon Hoffmann is to provide a key property in the aggregation. (refer to &lt;A href="https://github.com/SAP/openui5/issues/1736#issuecomment-338991820"&gt;#1736 (comment)&lt;/A&gt;)&lt;/P&gt;
  &lt;P&gt;Thanks all,&lt;/P&gt;
  &lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 22:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564376#M124055</guid>
      <dc:creator>MattHarding</dc:creator>
      <dc:date>2017-11-02T22:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSON TwoWay Binding Anomaly when in Table.</title>
      <link>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564377#M124056</link>
      <description>&lt;P&gt;And if you read the doco - this explains it:&lt;/P&gt;
  &lt;P&gt;setGrowing&lt;/P&gt;
  &lt;P&gt;Sets a new value for property growing.&lt;/P&gt;
  &lt;P&gt;If set to &lt;CODE&gt;true&lt;/CODE&gt;, enables the growing feature of the control to load more items by requesting from the model. &lt;STRONG&gt;Note:&lt;/STRONG&gt;: This feature only works when an &lt;CODE&gt;items&lt;/CODE&gt; aggregation is bound. &lt;STRONG&gt;Growing must not be used together with two-way binding&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 01:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-twoway-binding-anomaly-when-in-table/qaa-p/564377#M124056</guid>
      <dc:creator>MattHarding</dc:creator>
      <dc:date>2017-11-03T01:13:33Z</dc:date>
    </item>
  </channel>
</rss>

