{ "id": "76418", "key": "TIMOB-4415", "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": "11358", "description": "Mobile 1.8.0 M05", "name": "Sprint 2011-26", "archived": true, "released": true, "releaseDate": "2011-07-04" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-27T05:41:14.000+0000", "created": "2011-06-15T08:54:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "appendrow", "tableview" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-07-06T17:34:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h1. Problem\r\nIf you create a table view and immediately call appendRow multiple times, only the last call to appendRow will do anything. So if you add 3 rows, only the 3rd will end up in the table.\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js and run it; if this bug is present, you will only see 1 row. Otherwise, you will see 3.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.open();\r\n\r\nvar table = Ti.UI.createTableView();\r\n\r\ntable.appendRow({ title: 'Row 1' });\r\ntable.appendRow({ title: 'Row 2' });\r\ntable.appendRow({ title: 'Row 3' });\r\n\r\nwin.add(table);\r\n{code}\r\n\r\nh2. Workaround\r\nInstead of appending the rows, setData them:\r\n{code:title=Workaround app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.add(Ti.UI.createTableView({\r\n data: [\r\n { title: 'Row 1' },\r\n { title: 'Row 2' },\r\n { title: 'Row 3' }\r\n ]\r\n}));\r\nwin.open();\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-281379", "attachment": [], "flagged": false, "summary": "iOS: TableView Multiple appendRow Ignored", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "Tested in iPhone Simulator 4.3\r\nBROKEN in Ti Mobile 1.7.0 (official release)\r\nBROKEN in Ti Mobile 1.8.0 (06/14/11 14:46 108ce42...)\r\nWORKS in Ti Mobile 1.6.2", "comment": { "comments": [ { "id": "158848", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with iPhone 4 (4.3.3), iPad 2 (4.3.3) iPod 3rd Gen (4.0.2), iPhone 3GS (3.1.2), SDK 1.7.x r177ece80", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T17:34:15.000+0000", "updated": "2011-07-06T17:34:15.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }