{ "id": "90576", "key": "TIMOB-8795", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13503", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 API", "archived": true, "released": true, "releaseDate": "2012-07-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-21T05:42:24.000+0000", "created": "2012-04-19T11:43:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_tableview", "qe-review", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "23903", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "97388", "key": "TIMOB-9973", "fields": { "summary": "iOS: Incorrect properties returned by TableView's longpress event.", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "20665", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "90578", "key": "TIMOB-8796", "fields": { "summary": "Android: index, row , rowdata and section property for longpress event in tableview", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-11T20:42:32.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": "Just like the click event in TI.UI.Tableview, customer wants index,row,rowdata and section property for longpress event.", "attachment": [], "flagged": false, "summary": "iOS: index, row , rowdata and section property for longpress event in tableview", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1\r\niOS SDK: 5.0", "comment": { "comments": [ { "id": "191865", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: https://support.appcelerator.com/tickets/APP-843858", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-19T11:54:14.000+0000", "updated": "2012-04-19T11:54:14.000+0000" }, { "id": "197442", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Submitted [Pull Request #2336|https://github.com/appcelerator/titanium_mobile/pull/2336]", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T21:39:40.000+0000", "updated": "2012-06-05T21:39:40.000+0000" }, { "id": "197443", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableData = []\r\nvar s = 0;\r\nvar nRow = 0;\r\nfor(var i = 0; i < 100; i++){\r\n\tvar createNewSection = (i + 1) % 10 == 9 || i == 0 ? true : false;\r\n\tcreateNewSection ? nRow = 1 : nRow++;\r\n\ttableData.push({\r\n\t\ttitle:'Row #' + nRow + ' Index #' + i + ' Section #' + s,\r\n\t\tcustomProp:'Hello World! #' + i,\r\n\t\theader: createNewSection ? 'Section #' + s++ : null\r\n\t});\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tdata: tableData\r\n});\r\n\r\nwin.add(table);\r\n\r\ntable.addEventListener('longpress', function(e){\r\n\tTi.API.info('Section: ' + e.section);\r\n\tTi.API.info('Row: ' + e.row);\r\n\tTi.API.info('Row Data: ' + e.rowData);\r\n\tTi.API.info('Index: ' + e.index);\r\n\tTi.API.info('customProp: ' + e.rowData.customProp);\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T21:59:42.000+0000", "updated": "2012-06-05T21:59:42.000+0000" }, { "id": "199599", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is a pending pull from Pedro. Grabbing assignment as I've been working on him and I'm aware of the pull.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-21T10:55:48.000+0000", "updated": "2012-06-21T10:55:48.000+0000" }, { "id": "201573", "author": { "name": "riyuk", "key": "riyuk", "displayName": "colin boettcher", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Modified current 2.1.0.GA framework with Pedro's code. Works like a Charm.\r\nI would appreciate if this Ticket gets into 2.2 / 2.1.x\r\n\r\nThis solution is far better then calculating the cell manually like Math.floor((e.y + offset.y)/rowHeight)", "updateAuthor": { "name": "riyuk", "key": "riyuk", "displayName": "colin boettcher", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-05T09:58:36.000+0000", "updated": "2012-07-05T09:58:36.000+0000" }, { "id": "202112", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Credit to Pedro. Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-09T11:10:21.000+0000", "updated": "2012-07-09T11:10:21.000+0000" }, { "id": "202411", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Will this fix be in 2.1.1.vxxxxxx or 2.2.0.vxxxxxxxx (Fix Version says \"Sprint 2012-14 API\", but I have no idea what that means)?", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-10T14:04:08.000+0000", "updated": "2012-07-10T14:04:08.000+0000" }, { "id": "202896", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "I see that \"Release 2.2.0\" has been added to the Fix Version on this ticket. Any chance it can be merged into 2.1.1.vxxxxxx as well?", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-07-12T05:27:49.000+0000", "updated": "2012-07-12T05:27:49.000+0000" }, { "id": "211026", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "I guess not, since I just tried it with 2.1.1.GA and still don't get index, row, rowdata or section properties on the longpress event.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-08-01T10:33:18.000+0000", "updated": "2012-08-01T10:33:18.000+0000" }, { "id": "214752", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120815194913\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - iOS 5.1 simulator\r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T03:20:29.000+0000", "updated": "2012-08-16T03:20:29.000+0000" }, { "id": "241635", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed in SDK 3.0.2.GA.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-11T20:42:32.000+0000", "updated": "2013-03-11T20:42:32.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }