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

Android: Tableview: Shows Runtime Error on longpressing on any row

    Details

      Description

      This is regression. The issue does not exist on 3.0.2.

      Steps to Reproduce:
      1. Create an application with code below and launch the application
      2. Longpress on any row

      Actual: Shows Runtime Error with source error "Ti.API.info('customProp: ' + e.rowData.customProp);". Please find the attached log file and screen shot.
      Expected: Should not show the Runtime Error.

      var _window = Ti.UI.createWindow();
      var tableData = []
              var s = 0;
              var nRow = 0;
          
              for(var i = 0; i < 100; i++){
                  var createNewSection = (i + 1) % 10 == 9 || i == 0 ? true : false;
                  createNewSection ? nRow = 1 : nRow++;
                  tableData.push({
                      title:'Row #' + nRow + ' Index #' + i + ' Section #' + s,
                      customProp:'Hello World! #' + i,
                      header: createNewSection ? 'Section #' + s++ : null
                  });
              }
              var table = Ti.UI.createTableView({
                  data: tableData
              });
              _window.add(table);
              
              table.addEventListener('longpress', function(e){
                  Ti.API.info('Section:    ' + e.section);
                  Ti.API.info('Row:        ' + e.row);
                  Ti.API.info('Row Data:   ' + e.rowData);
                  Ti.API.info('Index:      ' + e.index);
                  Ti.API.info('customProp: ' + e.rowData.customProp);
              
              });
              _window.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                djha Dhirendra Jha
                Reviewer:
                Vishal Duggal (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration