{ "id": "108028", "key": "AC-2395", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-02-02T01:55:46.000+0000", "created": "2013-01-17T09:24:01.000+0000", "labels": [ "andoid", "api", "property", "sdk3", "section", "tableView" ], "versions": [], "issuelinks": [], "assignee": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:25.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h1. Problem\r\n{{sections}} property in TableView does not work as expected. Still needed to use {{data}} property.\r\n\r\nh1. Test case\r\nExample code provided in docs: [Table View Sections|http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.TableView]\r\n\r\n{code:js}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' });\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n \r\nvar sectionVeg = Ti.UI.createTableViewSection({ headerTitle: 'Vegetables' });\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\r\n \r\nvar table = Ti.UI.createTableView({\r\n // Prior to Release 3.0, add sections using the data property:\r\n // data: [sectionFruit, sectionVeg]\r\n sections: [sectionFruit, sectionVeg] // BUG\r\n});\r\n \r\nwin.add(table);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: in tableview, \"sections\" property (SDK >= 3.0.0) not working like \"data\" (SDK < 3.0.0)", "creator": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version: 3.0.0GA\r\nJavascript Engine: V8\r\nPlatform & version: Android 4.0.4\r\nDevice Details: Samsung Galaxy I9100\r\nHost Operating System: OS X 10.7.5\r\nTitanium Studio version: 3.0.0", "comment": { "comments": [ { "id": "234737", "author": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "body": "Why was this issue opened in TC? I wanted TIMOB, sorry", "updateAuthor": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-17T09:25:12.000+0000", "updated": "2013-01-17T09:25:12.000+0000" }, { "id": "236991", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello Marco,\n\nWe can't accept incomplete community reports. Please provide a working sample to replicate what you are seeing.\n\nYou may want to have a look at [Jira checklist|http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist].\n\nI'd reopen when resources are available.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-02T01:55:22.000+0000", "updated": "2013-02-02T01:55:22.000+0000" }, { "id": "237005", "author": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resources are already available. I already described what to do.\nOpen a new mobile project and copy and paste the sample from appcelerator's docs.\n\nAnyway, this is the code.\n\napp.js:\n{code:javascript}\nTi.UI.backgroundColor = 'white';\nvar win = Ti.UI.createWindow();\n\nvar sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' });\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\n\nvar sectionVeg = Ti.UI.createTableViewSection({ headerTitle: 'Vegetables' });\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\n\nvar table = Ti.UI.createTableView({\n // Prior to Release 3.0, add sections using the data property:\n // data: [sectionFruit, sectionVeg]\n sections: [sectionFruit, sectionVeg] // BUG\n});\n\nwin.add(table);\nwin.open();\n{code}", "updateAuthor": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-02T13:14:34.000+0000", "updated": "2013-02-02T13:14:34.000+0000" }, { "id": "239803", "author": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "seguri", "key": "seguri", "displayName": "Marco Seguri", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-26T16:57:30.000+0000", "updated": "2013-02-26T16:58:32.000+0000" }, { "id": "239804", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T17:13:15.000+0000", "updated": "2013-02-26T17:13:15.000+0000" }, { "id": "286396", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T02:19:01.000+0000", "updated": "2014-01-01T02:19:01.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }