{ "id": "142566", "key": "ALOY-1223", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-03-27T02:54:09.000+0000", "created": "2015-01-09T05:26:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ListView", "ScrollView", "Templates", "event" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-27T02:54:09.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": [], "description": "IOS: Events on Custom Template of ListView does not work well, when add Scrollable View into Template\r\n\r\nh6.Reproduce:\r\n1.Run the following test case on Alloy Project.\r\n\r\nh6.Problem:\r\nWhen add onSingletap event to Label inside template, it works well.\r\nBut If add same event to scrollable View inside template, build will failed with \"undefined\" error.\r\n\r\nh6.Test Case:\r\n{code:title=index.js}\r\nvar view1 = Ti.UI.createView({ backgroundColor:'#123', width:\"200\"});\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246', width:\"200\"});\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b', width:\"200\"});\r\n\r\nvar dataSet = [{ \r\n\tscroll: {\r\n\t\tviews:[view1, view2, view3],\r\n\t},\r\n\tproperties:{\r\n\t\theight: 200,\r\n selectionStyle: 0\r\n\t},\r\n}];\r\n$.section.appendItems(dataSet);\r\n\r\nfunction testClick(e) {\r\n\tTi.API.info(\"test single tap\");\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n \r\n \t \r\n \r\n \r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\nHere is the [Wiki Ref|https://wiki.appcelerator.org/display/guides2/Alloy+ListView+Guide#AlloyListViewGuide-HandlingEventsonTemplateViews]", "attachment": [], "flagged": false, "summary": "iOS: Events on Custom Template of ListView does not work well, when add Scrollable View into Template", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "IOS 8\r\nSDK 3.4.*", "comment": { "comments": [ { "id": "338529", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not positive why you would want to add a scrollable view. Can you give more information?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T16:00:43.000+0000", "updated": "2015-01-09T16:00:43.000+0000" }, { "id": "338552", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther] Might this be an ALOY issue?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-09T18:20:30.000+0000", "updated": "2015-01-09T18:20:30.000+0000" }, { "id": "341761", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Any update one this?\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-02-03T01:14:38.000+0000", "updated": "2015-02-03T01:14:38.000+0000" }, { "id": "341824", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "As stated earlier, the customer is attempting to use an antipattern here and should consider the alternatives proposed earlier. The ListView is not intended for this sort of use. Events will not propagate and be accessible in a useful manner, even if we made the Alloy compiler were made to work. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-03T14:58:41.000+0000", "updated": "2015-02-03T14:58:41.000+0000" }, { "id": "347517", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "[~ingo], Sorry for the late update. I will close this ticket as invalid, since customer might change design. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-03-27T02:54:00.000+0000", "updated": "2015-03-27T02:54:00.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }