{ "id": "125069", "key": "TIMOB-16266", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-07T18:46:03.000+0000", "created": "2014-01-20T21:25:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "listsection", "listview", "qe-testadded", "section" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-07-23T10:12: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": "There's no way to access a ListView {{sections}} property. It will always returns {{undefined}}.\r\n\r\n{code:javascript}var window = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar listView = Ti.UI.createListView({ });\r\n\r\nwindow.add(listView);\r\n\r\nvar section = Ti.UI.createListSection({\r\n\titems: [\r\n\t\t{\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: 'Hallo'\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n});\r\n\r\nlistView.appendSection(section);\r\n\r\nfunction test() {\r\n\tTi.API.error(\" >> \" + listView.sections);\r\n}\r\n\r\ntest();\r\n\r\nsetTimeout(test, 1e3);{code}", "attachment": [], "flagged": false, "summary": "Android: ListView.sections is undefined", "creator": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Mobile SDK 3.2.0.GA", "comment": { "comments": [ { "id": "288983", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the provided test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T07:31:15.000+0000", "updated": "2014-01-21T07:31:15.000+0000" }, { "id": "288998", "author": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "body": "Actually, I discovered it’s simply not implemented :\\", "updateAuthor": { "name": "yuchi", "key": "yuchi", "displayName": "Pier Paolo Ramon", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-21T08:40:51.000+0000", "updated": "2014-01-21T08:40:51.000+0000" }, { "id": "289363", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ListView.sections property is not marked as iOS only property so we may consider this ticket either as a Doc bug or as an Android feature request.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T05:59:14.000+0000", "updated": "2014-01-23T05:59:14.000+0000" }, { "id": "290805", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Exposed sections as a property and method.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5306", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-02T17:30:46.000+0000", "updated": "2014-02-02T17:30:46.000+0000" }, { "id": "301394", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "ListView.sections is returning ListSection Object, hence closing the issue.\r\n\r\nVerified the issue on:\r\nTested on:\r\nDevice : Google Nexus 5, Android Version: 4.4.2\r\nSDK: 3.3.0.v20140417173316\r\nCLI version : 3.2.3-alpha3\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.3.201404151910\r\ntitanium-code-processor: 1.1.1-alpha\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-18T09:58:01.000+0000", "updated": "2014-04-18T09:58:01.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }