{ "id": "114645", "key": "TIMOB-13927", "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": "15499", "description": "2013 Sprint 13 API", "name": "2013 Sprint 13 API", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-19T21:34:26.000+0000", "created": "2013-05-20T19:07:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "documentation", "module_tableview", "qe-testadded", "tableView", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-16T07:22:59.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TableView-event-swipe\r\n\r\nProperties lists row, rowData.\r\n\r\nThese are not available, as you can see in attached app.js\r\n\r\nAssuming this is a docs problem - though i'd prefer this be a code issue, as I could really use that info in the swipe event on a tableview. \r\n", "attachment": [ { "id": "38748", "filename": "app.js", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-20T19:07:36.000+0000", "size": 513, "mimeType": "text/javascript" }, { "id": "38813", "filename": "Screen Shot 2013-05-21 at 11.33.05 AM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T15:39:47.000+0000", "size": 153504, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TableView Swipe event doesn't contain row or rowData", "creator": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "environment": "3.1 GA, 3.2 CI\r\niOS 6", "comment": { "comments": [ { "id": "252936", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Teseted and confirmed on iOS 6 simulator with Ti SDK 3.1 GA and 3.2 CI.\n\nThe following output is displayed:\n\n{code}\n[INFO] : ->swipe {\n[INFO] : bubbles = 1;\n[INFO] : cancelBubble = 0;\n[INFO] : direction = left;\n[INFO] : source = \"[object TiUITableView]\";\n[INFO] : type = swipe;\n[INFO] : x = 255;\n[INFO] : y = 209;\n[INFO] : }\n{code}\n\nI will escalate this to engineering rather than docs and they can decide whether this is a docs issue.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T22:16:21.000+0000", "updated": "2013-05-20T22:16:21.000+0000" }, { "id": "252940", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android output (correct):\n\n{code}\nI/TiAPI ( 1577): ->swipe {\"type\":\"swipe\",\"source\":{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},\"detail\":false,\"index\":2,\"direction\":\"left\",\"cancelBubble\":false,\"rowData\":{\"backgroundRepeat\":false,\"title\":\"Row\"},\"row\":{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},\"section\":{\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"rowCount\":12,\"children\":[],\"keepScreenOn\":false,\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"rows\":[{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"touchEnabled\":false,\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false},{\"bubbleParent\":true,\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"children\":[],\"backgroundRepeat\":false,\"title\":\"Row\",\"keepScreenOn\":false}]},\"y\":118,\"x\":174.4083709716797,\"bubbles\":true}\n{code}", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T22:21:06.000+0000", "updated": "2013-05-20T22:21:06.000+0000" }, { "id": "253022", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "thanks daniel.\r\n", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T01:25:03.000+0000", "updated": "2013-05-21T01:25:03.000+0000" }, { "id": "253092", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Also missing is index.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T15:38:52.000+0000", "updated": "2013-05-21T15:38:52.000+0000" }, { "id": "253093", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Screenshot of simulator showing code & properties of event object", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T15:39:47.000+0000", "updated": "2013-05-21T15:39:47.000+0000" }, { "id": "253098", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Confirm that this does not work on 3.0.0.GA\r\nDo not have a system I can roll back to test on 2.1.x.\r\nSwipe on the row also appears broken.\r\nSpecifying each row individually, or passing as an array to setData() no difference.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: '#262626'});\r\nvar row0 = Ti.UI.createTableViewRow({title: 'Ti.version: '+ Ti.version});\r\nvar row1 = Ti.UI.createTableViewRow({title: '1'});\r\n// row1.addEventListener('swipe', function(e){\r\n// \talert('row swipe event fired: '+JSON.stringify(e));\r\n// });\r\nvar tableView = Ti.UI.createTableView({height: '100%', width: '100%'});\r\ntableView.appendRow(row0);\r\ntableView.appendRow(row1);\r\ntableView.addEventListener('click', function(e){\r\n\talert('click event fired: '+JSON.stringify(e));\r\n});\r\n\r\ntableView.addEventListener('swipe', function(e){\r\n\talert('swipe event fired: '+JSON.stringify(e));\r\n});\r\nwin.add(tableView);\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T15:45:19.000+0000", "updated": "2013-05-21T15:45:19.000+0000" }, { "id": "253108", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Broken on 2.1.4GA\r\n\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/cda2fbea-6e94-48f2-9288-70a3bcf4cd74/00000881.png!\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T16:12:58.000+0000", "updated": "2013-05-21T16:12:58.000+0000" }, { "id": "253112", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Broken on 2.0.1GA, last sdk I can build with on this system.\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/76b0d6a5-cfa8-40af-9039-82f4f1399e4a/00000882.png!", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-05-21T16:26:58.000+0000", "updated": "2013-05-21T16:26:58.000+0000" }, { "id": "258600", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Expanded test case with Search\n\n{code}\nvar win = Ti.UI.createWindow();\n\n\nvar data = [];\n\n\nfor \n (var i = 1; i <= 50; i++) {\n var row = Ti.UI.createTableViewRow({title: 'ROW '+i});\n data.push(row);\n};\n\nvar search = Titanium.UI.createSearchBar({\n barColor:'#385292',\n showCancel:false,\n hintText:'search'\n });\n\nsearch.addEventListener('return', function(e)\n{\n search.blur(); \n});\nsearch.addEventListener('cancel', function(e) \n{\n search.blur();\n});\n\nvar table = Ti.UI.createTableView({\n data:data,\n search:search,\n searchHidden:true,\n hideSearchOnSelection:false,\n height:'80%'\n})\n\nwin.add(table);\n\n\ntable.addEventListener('swipe', function(e){\n if (e.row != undefined) \n {\n Ti.API.info('swipe event fired: '+e.x+' '+e.y+' '+e.direction+' '+e.search+' '+e.index+' '+JSON.stringify(e.row));\n } else \n {\n Ti.API.info('swipe event fired: '+e.x+' '+e.y+' '+e.direction+' '+e.search);\n }\n});\n\nvar hide = Ti.UI.createButton({\n title:'HIDE',\n bottom:0,\n left:0\n})\n\nvar show = Ti.UI.createButton({\n title:'SHOW',\n bottom:0,\n right:0\n})\n\nwin.add(hide);\nwin.add(show);\n\nhide.addEventListener('click',function(){\n table.searchHidden = true;\n})\n\nshow.addEventListener('click',function(){\n table.searchHidden = false;\n})\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T20:21:05.000+0000", "updated": "2013-06-19T20:21:05.000+0000" }, { "id": "258602", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4404", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T20:25:07.000+0000", "updated": "2013-06-19T20:25:07.000+0000" }, { "id": "270374", "author": { "name": "mross@qtags.com", "key": "mross@qtags.com", "displayName": "Mark Ross", "active": true, "timeZone": "America/Chicago" }, "body": "Why isn't this fixed included in 3.1.3? I need this functionality so I downloaded 3.1.3.v20130908095038 and then realized it never made it to that codebase. How can I get this fix in an SDK without jumping to 3.2.0?", "updateAuthor": { "name": "mross@qtags.com", "key": "mross@qtags.com", "displayName": "Mark Ross", "active": true, "timeZone": "America/Chicago" }, "created": "2013-09-09T18:08:25.000+0000", "updated": "2013-09-09T18:08:25.000+0000" }, { "id": "270548", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@[~mross@qtags.com], You could just cherry pick this PR into your own 3_1_X branch and build a custom SDK. ", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-10T06:56:19.000+0000", "updated": "2013-09-10T07:03:57.000+0000" }, { "id": "272437", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This really should be merged back to 3_1_X, with 3_2_X not expected before dec right?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-23T08:50:04.000+0000", "updated": "2013-09-23T08:50:04.000+0000" }, { "id": "272454", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Wow, Vishal. 'Roll your own'? 'Cherry pick'? While that is a TECHNICALLY accurate response, it is a highly IMPRACTICAL response to an end user. \r\n'I'm sorry sir, we forgot to put wheels on your new car, here is a welding torch, you can add it yourself'.\r\n\r\nI'm with Fokke, this needs pushed into a supplemental 3.1.x release.\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-23T12:29:23.000+0000", "updated": "2013-09-23T12:29:23.000+0000" }, { "id": "272460", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~sfeather], here you are... 3.1.3.GA with the fix: http://we.tl/FWBwFt4XDN", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-23T13:15:29.000+0000", "updated": "2013-09-23T13:15:29.000+0000" }, { "id": "272494", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Fokke, thanks. That should help anyone else that stumbles across this cluster. We rolled ours this morning. Its the engineer's 'attitude' towards end users that irks me. Not all titanium users are setup to compile the sdk themselves.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-23T16:51:15.000+0000", "updated": "2013-09-23T16:51:15.000+0000" }, { "id": "272499", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sfeather] While I agree that this could have been communicated better, we try to keep the list of items we pull onto the CI 3.1.X branches relatively small in order to keep that branch as stable as possible. It's not possible for us to backport everything--we attempt to backport items that broadly affect everyone, and encourage users to backport fixes that meet their specific needs where they can't wait for the next major release.\n\nWe will review pulling this into 3.1.X. That said, I would like it if it were straightforward for users to self-patch the SDK. Suggestions are appreciated.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-23T17:11:38.000+0000", "updated": "2013-09-23T17:11:38.000+0000" }, { "id": "275116", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Row data is contained in the swipe event.\r\n\r\nVerified fix on:\r\nDevice : iPod Touch , iOS version : 6.1.3\r\nDevice : iPhone 5 , iOS version : 7.0\r\nSDK: 3.2.0.v20131013140318\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310112258\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-15T11:38:24.000+0000", "updated": "2013-10-15T11:38:24.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }