{ "id": "109368", "key": "TIMOB-12616", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-11-21T19:33:05.000+0000", "created": "2013-02-07T15:28:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tableview", "parity", "qe-testadded", "release-note", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "25616", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "109382", "key": "TIMOB-12620", "fields": { "summary": "Android: TableView.sections property not supported", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "25617", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "109388", "key": "TIDOC-1028", "fields": { "summary": "APIDoc: Add disclaimer about TableView sections & appendSection until TIMOB-12616 is fixed.", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26735", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "110315", "key": "TIMOB-12884", "fields": { "summary": "iOS: ViewProxy checks for listeners using parent instead of bubbleParent, does not allow for nonViewProxy event bubbling.", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-18T14:58:31.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If a section is added to a table using table.appendSection, table.sections = [mySection]; any events on a tableview dont work. Below are some samples. What works is contrary to the 3.0 documentation where it says now in 3.x+ the section methods and properties should be used over data:\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"#eee\"\r\n});\r\nwin.open();\r\n\r\nvar table = Ti.UI.createTableView();\r\nvar section = Ti.UI.createTableViewSection();\r\nsection.headerView = (function() {\r\n\tvar view = Ti.UI.createView();\r\n\tvar label = Ti.UI.createLabel({ text: \"Some Section\" });\r\n\tview.add(label);\r\n\r\n\treturn view;\r\n})();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\ttitle: \"Row\"\r\n});\r\n\r\nsection.add(row);\r\n\r\n// THIS WILL KILL THE EVENT LISTENER\r\n//table.sections = [section];\r\n\r\n// THIS WILL KILL THE EVENT LISTENER\r\n//table.appendSection(section);\r\n\r\n// THIS WORKS\r\n//table.setData([section]);\r\n\r\ntable.addEventListener(\"click\", function(event) {\r\n\talert(\"TableView Clicked\");\r\n\tTi.API.debug(event.row);\r\n});\r\n\r\nwin.add(table);\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TableView Click Events dont get added under certain circumstances", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "237662", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to affect other section manipulation methods, such as insertSectionAfter.\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T21:15:14.000+0000", "updated": "2013-02-07T21:15:14.000+0000" }, { "id": "242377", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Rick Is the issue just about the row, or also the section header? Those are two different issues that have similar symptoms, and just wanted to know if you wanted both fixed, or just rows.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T01:42:55.000+0000", "updated": "2013-03-15T01:42:55.000+0000" }, { "id": "242380", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Those playing along, https://github.com/BlainHamon/titanium_mobile/compare/master...timob-12616", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T01:48:29.000+0000", "updated": "2013-03-15T01:48:29.000+0000" }, { "id": "242449", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "@Blain - The issue the ticket is reporting is if you use the section methods mentioned above, click events dont work.\n\nThe other part is probably a documentation issue that could spin off as another ticket I assume.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2013-03-15T14:33:31.000+0000", "updated": "2013-03-15T14:33:31.000+0000" }, { "id": "242490", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Rick Yeah, in retrospect, the tableview click events correspond to the user tapping a row; no such events are generated natively for tapping the header. Creating pull request now.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T18:33:29.000+0000", "updated": "2013-03-15T18:33:29.000+0000" }, { "id": "242491", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3971", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T18:36:06.000+0000", "updated": "2013-03-15T18:36:06.000+0000" }, { "id": "242844", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Merged", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T03:51:47.000+0000", "updated": "2013-03-19T03:51:47.000+0000" }, { "id": "243392", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130319222852\r\nStudio: 3.1.0.201303091040\r\nDevice: iPad2(v 5.1)\r\n\r\nWorks as expected.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T11:56:53.000+0000", "updated": "2013-03-21T11:56:53.000+0000" }, { "id": "243426", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Opening to correct labels.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T16:33:01.000+0000", "updated": "2013-03-21T16:33:01.000+0000" }, { "id": "262788", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening just to update the labels.", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-23T07:50:58.000+0000", "updated": "2013-07-23T07:50:58.000+0000" }, { "id": "262797", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Updated label.\r\nClosing as fixed, Verified with environment:\r\nOSX: 10.8.4\r\nXcode:4.5\r\nAppcelerator Studio, build: 3.1.2.201307191853\r\nSDK:3.1.2.v20130718094558\r\nDevice: Google nexus 4.0.4, Iphone OS:5.1\r\nacs:1.0.3\r\nalloy:1.1.3\r\ntitanium: 3.1.1\r\ntitanium-code-processor:1.0.1\r\n", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-23T09:08:25.000+0000", "updated": "2013-07-23T09:08:25.000+0000" }, { "id": "278537", "author": { "name": "animecyc", "key": "animecyc", "displayName": "Seth Benjamin", "active": true, "timeZone": "America/New_York" }, "body": "I am seeing this same issue in 3.1.3.GA; Is there possibly a regression? If so I will create a new ticket but it'd make more sense to keep it here.", "updateAuthor": { "name": "animecyc", "key": "animecyc", "displayName": "Seth Benjamin", "active": true, "timeZone": "America/New_York" }, "created": "2013-11-06T23:50:04.000+0000", "updated": "2013-11-06T23:50:04.000+0000" }, { "id": "280449", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T01:14:37.000+0000", "updated": "2013-11-21T01:14:37.000+0000" }, { "id": "280582", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce issue on 3.2.x master (Build: [7e04bf3ec2094770295ec0bf5c833741b0178f04|https://github.com/appcelerator/titanium_mobile/tree/7029e7a83674a8ca4ae66799cc5c377092ab774a])\r\nand 3.1.X (build : ff583e9747925932ca589e277f49799d7c0348bc|https://github.com/appcelerator/titanium_mobile/commit/ff583e9747925932ca589e277f49799d7c0348bc])\r\n\r\nTested on Xcode 5.0.1 on sim 6.1 and 7.0.3", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T18:46:01.000+0000", "updated": "2013-11-21T19:32:52.000+0000" }, { "id": "346926", "author": { "name": "Kehza", "key": "kehza", "displayName": "Ceri Morgan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Problem still persists, tested on SDK: 3.5.0, Ipad MIni 1 Model A1455. ", "updateAuthor": { "name": "Kehza", "key": "kehza", "displayName": "Ceri Morgan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-23T01:32:32.000+0000", "updated": "2015-03-23T01:32:32.000+0000" }, { "id": "432291", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "So... I appear to be having this issue now on 6.3.0 and 6.0.4.\r\n\r\nClick events don't fire with\r\n\r\n{code}\r\n $.dataTableView.setSections(sections);\r\n{code}\r\n\r\nClick events do fire when I only provide an array of rows for the last section\r\n\r\n{code}\r\n $.dataTableView.setData(rows);\r\n{code}\r\n", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-18T14:57:47.000+0000", "updated": "2017-12-18T14:58:31.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }