{ "id": "107748", "key": "ALOY-464", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15271", "description": "Alloy 1.1.0, concurrent with SDK 3.1.0", "name": "Alloy 1.1.0", "archived": false, "released": true, "releaseDate": "2013-04-16" }, { "id": "14872", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-29T21:36:44.000+0000", "created": "2013-01-11T13:02:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:03.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "See discussion: https://groups.google.com/forum/#!topic/appc-ti-alloy/rW8FFb7IxOg\r\n\r\nHi,\r\nit is not possible to add a headerView to a TableViewSection like a headerView to a TableView.\r\n\r\nMarkup:\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\nLog Output: \r\n\u001b[31m[ERROR] \u001b[39m: \u001b[31m\b\b \b[ERROR] Error with at line 3\u001b[39m\r\n\u001b[31m[ERROR] \u001b[39m: \u001b[31m\b\b \b[ERROR] Parent element must one of the following: [Ti.UI.TableView]\u001b[39m\r\n\r\nWould be cool to have same features for TableViewSection like TableView, see https://github.com/appcelerator/alloy/blob/master/test/apps/ui/proxy_properties/views/table.xml", "attachment": [], "flagged": false, "summary": "Alloy - HeaderView element not working for TableViewSection", "creator": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "236504", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "example in test app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/proxy_properties", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-29T21:36:44.000+0000", "updated": "2013-01-29T21:36:44.000+0000" }, { "id": "239794", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "The example give me same bug when add into \r\n\r\n", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2013-02-26T14:03:31.000+0000", "updated": "2013-02-26T14:03:31.000+0000" }, { "id": "239795", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Are you using the right version of Alloy? As noted in the fix version of this ticket it requires Alloy 1.0.0.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T14:20:45.000+0000", "updated": "2013-02-26T14:20:45.000+0000" }, { "id": "239796", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "alloy -v\r\n1.0.0\r\n\r\nSDK 3.0.2.GA", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2013-02-26T14:24:42.000+0000", "updated": "2013-02-26T14:24:42.000+0000" }, { "id": "239823", "author": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "body": "It's not working for me too. \r\n\r\nGetting the following message with Alloy 1.0.0 + SDK 3.0.2.GA \r\n\r\n\"Parent element must one of the following: [Ti.UI.TableView]\"", "updateAuthor": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-26T18:39:42.000+0000", "updated": "2013-02-26T18:39:42.000+0000" }, { "id": "239834", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apologies guys, i had it labeled with the wrong fix version. This was actually the very first thing I worked on when 1.1.0 work started. So this will be available in 1.1.0, and is already available in the github repository.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T19:20:38.000+0000", "updated": "2013-02-26T19:20:38.000+0000" }, { "id": "239875", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Worked with Alloy 1.1.0\r\n\r\nThanks Tony :)", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2013-02-26T22:37:34.000+0000", "updated": "2013-02-26T22:37:34.000+0000" }, { "id": "241743", "author": { "name": "qonstrukt", "key": "qonstrukt", "displayName": "Stefan Moonen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Tony, when I tested your addition (I pulled it from Github) I noticed the HeaderView doesn't get added to the TableView on creation. This causes issues on Android since HeaderView is a \"Creation Only\" property of TableViewSection.\r\nIs there another issue that already covers the way this works? I couldn't find it, but that's why I haven't created a new issue (yet).", "updateAuthor": { "name": "qonstrukt", "key": "qonstrukt", "displayName": "Stefan Moonen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-03-12T12:55:21.000+0000", "updated": "2013-03-12T12:55:21.000+0000" }, { "id": "241747", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T14:05:40.000+0000", "updated": "2013-03-12T14:06:06.000+0000" }, { "id": "243891", "author": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It that problem with android were fixed?", "updateAuthor": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T10:54:35.000+0000", "updated": "2013-03-25T11:34:22.000+0000" }, { "id": "243896", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you elaborate on the problem...\r\n\r\nAlso, have you checked TIMOB-11232 listed in the comment directly preceding your's? Does that account for your situation?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T11:31:38.000+0000", "updated": "2013-03-25T11:33:29.000+0000" }, { "id": "243897", "author": { "name": "qonstrukt", "key": "qonstrukt", "displayName": "Stefan Moonen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "My guess would be he's running into the same problem where the headerView isn't added on creation. So HeaderViews set in an Alloy template won't work on Android.", "updateAuthor": { "name": "qonstrukt", "key": "qonstrukt", "displayName": "Stefan Moonen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-03-25T11:34:36.000+0000", "updated": "2013-03-25T11:34:36.000+0000" }, { "id": "243899", "author": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes I think that is my problem. I have created a markup :\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\nthen in tss file define to rules :\r\n\".sectionHeaderView[platform=android]\" : \r\n {\r\n width: Ti.UI.FILL\r\n , height: \"25dp\"\r\n , backgroundColor: \"#7d820c\" \r\n }\r\n, \".headerViewLabel[platform=android]\" : \r\n {\r\n left: \"5dp\"\r\n , height: \"25dp\"\r\n , textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT\r\n , font: \r\n {\r\n fontSize: \"15dp\"\r\n , fontWeight: \"bold\" \r\n }\r\n , color: \"#fff\"\r\n , width: Ti.UI.FILL\r\n }\r\n, \".sectionHeaderView\" : \r\n {\r\n height: \"30dp\"\r\n , font: {\r\n fontSize: \"14dp\"\r\n }\r\n , width: Ti.UI.FILL\r\n }\r\n, \".headerViewLabel\" : \r\n {\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER\r\n , font: {\r\n fontSize: \"20dp\"\r\n , fontWeight : \"bold\"\r\n }\r\n , width: Ti.UI.FILL\r\n , color: \"#4169E1\"\r\n }\r\n\r\nAnd for IOS it works but on android it just shows table with out any tableviewsections. :-(", "updateAuthor": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T11:37:42.000+0000", "updated": "2013-03-25T11:37:42.000+0000" }, { "id": "243901", "author": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If that will be fixed in future releases? And maybe you know what is the ticket issue number for it?", "updateAuthor": { "name": "alejandro.del.rio", "key": "alejandro.del.rio", "displayName": "Alejandro Del Rio Albrechet", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T11:40:07.000+0000", "updated": "2013-03-25T11:43:53.000+0000" }, { "id": "243903", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-11232 is the root of the issue. I would watch that ticket and comment there to let the engineers this is an important issue.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T12:03:27.000+0000", "updated": "2013-03-25T12:03:27.000+0000" }, { "id": "251760", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Though no error is being displayed on building alloy app with headerview element,header and footer for tableview section are still not visible.So cannot close the bug as TIMOB-11232 is still open.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-14T09:31:59.000+0000", "updated": "2013-05-14T09:32:49.000+0000" }, { "id": "251777", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sbhadauria] Alloy's implementation is not contingent on whether or not the underlying platforms all work as expected. When TIMOB-11232, which is the actually issue being reported here, is resolved, then the header and footer will appear in tableview sections. This ticket was opened for implementation of the feature in alloy, not to address the bug in TIMOB-11232.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-14T12:52:08.000+0000", "updated": "2013-05-14T12:52:08.000+0000" }, { "id": "269202", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still not working in Alloy 1.2.1 SDK 3.1.2. \r\nAlloy does like this: $.__views.__alloyId154.headerView = $.__views.__alloyId157;\r\nSetting the headerView property on the TableViewSection after the creation doesn't work, instead we need to create the section and pass the headerView property on its creation.\r\nSo I guess the only way is to do it on the controller right now.", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-02T02:49:11.000+0000", "updated": "2013-09-02T02:49:11.000+0000" }, { "id": "281876", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey Tony, \r\nAlloy 1.2.2 SDK 3.1.3.GA or 3.2.0.v20131102082008 I am still getting this same error.\r\n\r\nThis is not resolved.\r\n\r\n[DEBUG] [ERROR] Error with at line 5\r\n[DEBUG] [ERROR] Child element must be one of the following: [Ti.UI.ListSection,Alloy.Abstract.Templates]\r\n[DEBUG] [ERROR] Alloy compiler failed\r\n\r\n\r\nI am getting this error via your listview example app in the alloy repo.\r\n\r\n", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T13:49:51.000+0000", "updated": "2013-12-02T13:49:51.000+0000" }, { "id": "282105", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sophrinix] couple things wrong with your report here:\n\n# You're reporting an error with ListView when this entire issue is regarding TableView\n# ListView did not even support or any other proxy property until 3.2.0, it is brand new. It is in turn supported in Alloy 1.3.0, as noted here: ALOY-843\n# Use Alloy 1.3.0 and TiSDK 3.2.0 and everything should work fine for ListView, as detailed in this test app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/lists_proxy_properties", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T13:19:05.000+0000", "updated": "2013-12-03T13:19:05.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }