Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24134

Windows: tableview.data/getData does not return a tableviewsection

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.1.0
    • Component/s: Windows
    • Labels:
    • Environment:

      OS: Microsoft Windows 10 Pro 10.0.14393
      Appc core: 6.0.0-69
      Appc NPM: 4.2.8-9
      Ti SDK: 6.0.0.v20161109075403

    • Story Points:
      5
    • Sprint:
      2017 Sprint 03 SDK

      Description

      Description

      When calling tableview.data/tableView.getData() on Windows it will return tableviewrows however on both iOS and Android it will always seem to return a tableviewsection regardless of if a tableviewsection has been added.

      var _window = Ti.UI.createWindow();
      var table = Ti.UI.createTableView({
          top: 0,
          bottom: 0
      });
       
      var tableData = [];
       
      for (var i = 0; i < 10; i++) {
          tableData.push(Ti.UI.createTableViewRow({
              title: "Row " + (i + 1)
          }));
      }
       
      table.setData(tableData);
       
      _window.add(table);
       
      table.addEventListener("click", function (e) {
          alert(table.data[0].rows[e.index].title);
      });
      _window.open();
      

      I'm unsure which is the preferential behaviour

      Steps to reproduce
      1. Add the above code to an existing app.js and build for windows platform
      2. Click update row
      3. Observe logs
      Actual result

      The value returned is multiple tableviewrows

      Expected result

      Unsure, but for parity with other platforms it should be a tableviewsection

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10270
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration