{ "id": "171247", "key": "TIMOB-25843", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-03-08T00:03:20.000+0000", "created": "2018-03-06T11:57:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ANDROID", "CLI7.0.2.GA", "SDK7.1.0.RC", "Studio5.0.0.GA", "regression" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-14T18:08:55.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*This is a regression from 7.0.2 to 7.1.0*\r\n\r\nI have tried 7.1.0.RC\r\n\r\nIt used to work properly in the past ...\r\n{code:js}\r\ntableData[2] = tableViewSection3;\r\ntableView.data = tableData;\r\n{code}\r\n\r\nHowever, now it only works this:\r\n{code:js}\r\ntableView.updateSection(2, tableViewSection3);\r\n{code}\r\n\r\n{code:js}\r\nfunction createTableViewRow(e) {\r\n\t\r\n\tvar rowView = Titanium.UI.createTableViewRow({\r\n\t\theight: 120\r\n\t});\r\n\t\r\n\trowView.add(Titanium.UI.createLabel({\r\n\t\ttext:'Text',\r\n\t}));\r\n\t\r\n\treturn rowView;\r\n}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableData = [];\r\n\r\nvar tableView = Titanium.UI.createTableView({\r\n\tseparatorStyle:Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_NONE\r\n});\r\n\t\r\nvar tableViewSection1 = Ti.UI.createTableViewSection();\r\nvar tableViewSection2 = Ti.UI.createTableViewSection();\r\nvar tableViewSection3 = Ti.UI.createTableViewSection();\r\n\r\ntableData.push(tableViewSection1);\r\ntableData.push(tableViewSection2);\r\ntableData.push(tableViewSection3);\r\n\t\r\ntableView.data = tableData;\r\n\t\r\nwin.add(tableView);\r\n\r\nvar setData = function(e) {\r\n\r\n\ttableViewSection3.add(createTableViewRow());\r\n\ttableViewSection3.add(createTableViewRow());\r\n\ttableViewSection3.add(createTableViewRow());\r\n\t\r\n\t//tableView.updateSection(2, tableViewSection3);\r\n\ttableData[2] = tableViewSection3;\r\n\ttableView.data = tableData;\t\r\n\t\r\n};\r\n\r\nwin.addEventListener('open', function(e) {\r\n\tsetData();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: 7.1.0.RC - Setting data in Ti.UI.TableView does not work as before", "creator": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "435311", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here's another test case:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'gray' }),\r\n data = [\r\n Ti.UI.createTableViewSection({ headerTitle: 'SECTION #1' }),\r\n Ti.UI.createTableViewSection({ headerTitle: 'SECTION #2' }),\r\n Ti.UI.createTableViewSection({ headerTitle: 'SECTION #3'})\r\n ],\r\n tv = Ti.UI.createTableView();\r\n\r\n// section #1 data\r\ndata[0].add(Ti.UI.createTableViewRow({ title: 'Square' }));\r\ndata[0].add(Ti.UI.createTableViewRow({ title: 'Circle' }));\r\ndata[0].add(Ti.UI.createTableViewRow({ title: 'Triangle' }));\r\n\r\n// section #2 data\r\ndata[1].add(Ti.UI.createTableViewRow({ title: 'Square' }));\r\ndata[1].add(Ti.UI.createTableViewRow({ title: 'Circle' }));\r\ndata[1].add(Ti.UI.createTableViewRow({ title: 'Triangle' }));\r\n\r\n// set table data\r\ntv.data = data;\r\n\r\nwin.addEventListener('open', function (e) {\r\n\r\n // section #3 data\r\n data[2].add(Ti.UI.createTableViewRow({ title: 'Square' }));\r\n data[2].add(Ti.UI.createTableViewRow({ title: 'Circle' }));\r\n data[2].add(Ti.UI.createTableViewRow({ title: 'Triangle' }));\r\n\r\n // set table data\r\n tv.data = data;\r\n});\r\n\r\nwin.add(tv);\r\nwin.open();\r\n{code}\r\n\r\nTested on {{7.1.0.v20180306061214}}, issue is present.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T19:12:20.000+0000", "updated": "2018-03-07T19:47:55.000+0000" }, { "id": "435313", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Regression caused by:\r\n\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/9701\r\n7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9874", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T19:25:49.000+0000", "updated": "2018-03-07T19:25:49.000+0000" }, { "id": "435314", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9916\r\n7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9917", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T19:42:14.000+0000", "updated": "2018-03-07T19:42:14.000+0000" }, { "id": "435369", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR's merged.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-08T00:03:14.000+0000", "updated": "2018-03-08T00:03:14.000+0000" }, { "id": "435596", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.1.0.v20180308150545 & 7.2.0.v20180313125304.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.12\r\nAppc CLI: 7.0.2\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.11.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 — Android 6.0.1\r\n⇨ google Nexus 6P — Android 8.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-14T18:08:36.000+0000", "updated": "2018-03-14T18:08:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }