{ "id": "86743", "key": "TIMOB-7914", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-04T15:45:40.000+0000", "created": "2012-02-21T12:00:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "IOS,", "TableView", "module_tableview", "qe-testadded", "updateRow" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-04T15:45:40.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": "h2. Problem\r\nAfter calling Ti.UI.TableView.updateRow(), the click event no longer fires.\r\n\r\nh2. Steps to reproduce\r\n# Make a project with the below app.js.\r\n# Click row 1 \r\n#* Notice that the click event fired by seeing the Ti.API.Info message \"table row clicked\"\r\n# Click the 'update row 1' button\r\n# Click row 1 \r\n#* Notice that the click event does not fire\r\n\r\n{code:title=app.js||borderStyle=solid}\r\nvar win1 = Ti.UI.createWindow({});\r\n\r\n\r\nvar data = [{title:'Row 1'}, {title:'Row 2'}];\r\nvar table = Ti.UI.createTableView({data:data});\r\nwin1.add(table);\r\n\r\ntable.addEventListener('click', TableClick);\r\n\r\nfunction TableClick(evt)\r\n{\r\n Ti.API.info('table row clicked');\r\n}\r\n\r\n\r\nvar btn2 = Ti.UI.createButton({\r\n title:'update row 1',\r\n width:120,\r\n height:50,\r\n left:10,\r\n bottom:0\r\n});\r\nbtn2.addEventListener('click',DoBtn2Click);\r\nwin1.add(btn2);\r\n\r\nfunction DoBtn2Click()\r\n{\r\n table.updateRow(0, table.data[0].rows[0]);\r\n}\r\n\r\nwin1.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "IOS: Calling Ti.UI.TableView.updateRow causes that row to loose the click event", "creator": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK 1.8.1\r\n* iPhone 5.0 Simulator\r\n* Mac OS Lion\r\n\r\n", "comment": { "comments": [ { "id": "183919", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Although this seems like a bug, I don't understand why to update row with itself? That makes no sense, but could potentially cause that bug.\r\n\r\n\r\nTry to create new row and then update row at particular index (\"update\" may not be right word, \"replace\" IMHO suits better).\r\n\r\n\r\n\r\nAlso, how did you managed to run iPhone simulator on Windows 7? :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-02-22T00:38:51.000+0000", "updated": "2012-02-22T00:38:51.000+0000" }, { "id": "183930", "author": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ivan, \"update\" is the terminology used by Appcelerator not me. The updating line updates the row with itself for simplicity. You can change it to update with whatever you want to update it with and it still looses the event among other issues, also reported in a different ticket. \r\n\r\nWindows 7 was a copy/paste error. I have updated it. Thanks for the catch...however I sure do wish we could use the IOS simulator in Windows!!!! ", "updateAuthor": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-22T05:23:45.000+0000", "updated": "2012-02-22T05:23:45.000+0000" }, { "id": "184157", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Shak, this is a critical issue for us. We need to be able to update TableView rows and still see a click event on them.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-24T08:44:58.000+0000", "updated": "2012-02-24T08:44:58.000+0000" }, { "id": "185387", "author": { "name": "ssoniat", "key": "ssoniat", "displayName": "Stephanie Soniat", "active": true, "timeZone": "America/Indiana/Knox" }, "body": "I've run into this, too. For a small table I was able to delete the rows and re-add them, but this will be a big problem with bigger tables.", "updateAuthor": { "name": "ssoniat", "key": "ssoniat", "displayName": "Stephanie Soniat", "active": true, "timeZone": "America/Indiana/Knox" }, "created": "2012-03-07T12:15:09.000+0000", "updated": "2012-03-07T12:15:09.000+0000" }, { "id": "185912", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Neeraj, I see the priority on this got bumped from Critical to Medium and then to High. Please reconsider the change and please move it back to Critical, which is defined here in JIRA as \"Blocks Development\" and \"Production could not run\". I think those terms describe this bug, since click events completely stop working. An app cannot be released like this, and any development work downstream of the updateRow() call is completely stalled. Thanks.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-11T15:47:01.000+0000", "updated": "2012-03-11T15:47:01.000+0000" }, { "id": "186245", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolved by PR #1647", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-13T11:11:53.000+0000", "updated": "2012-03-13T11:11:53.000+0000" }, { "id": "186876", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120316093247\r\nTitanium Studio, build: 2.0.0.201203152033\r\nDevice: iPhone4 (V4.3.5)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T14:09:49.000+0000", "updated": "2012-03-16T14:09:49.000+0000" }, { "id": "189889", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T15:44:56.000+0000", "updated": "2012-04-04T15:44:56.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }