{ "id": "109382", "key": "TIMOB-12620", "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": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-06T22:09:48.000+0000", "created": "2013-02-07T19:42:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "qe-testadded", "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" }, "outwardIssue": { "id": "109368", "key": "TIMOB-12616", "fields": { "summary": "iOS: TableView Click Events dont get added under certain circumstances", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-25T21:57:33.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": "Using the test case from the linked bug I noticed that table.sections = [mySection]; doesn't work on Android. The doc says it's supported on all platforms:\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// DOESN'T WORK\r\n//table.sections = [section];\r\n\r\n// THIS WORKS\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": "Android: TableView.sections property not supported", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "237659", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Ready:\nhttps://github.com/appcelerator/titanium_mobile/pull/3849\n\nsections was already supported, but as a read-only property.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T20:43:14.000+0000", "updated": "2013-02-07T20:43:14.000+0000" }, { "id": "238076", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Ready:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3849", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T00:16:05.000+0000", "updated": "2013-02-12T00:16:05.000+0000" }, { "id": "241725", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.0.v20130312015656\r\nStudio: 3.1.0.201303091040\r\nDevice: Android emulator\r\nOS: OSX 10.7.5\r\n\r\nworks as expected", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T10:33:40.000+0000", "updated": "2013-03-12T10:33:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }