{ "id": "175914", "key": "TIMOB-28292", "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": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": null, "resolutiondate": null, "created": "2020-12-16T10:04:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "listview", "regression" ], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-03-07T22:07:51.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "- Getting Value undefined of e.bindId in Itemclick event of Listview. Same issue only observe with Android. For iOS version it is working fine\r\n\r\nPlease Resolve it on priority", "attachment": [], "flagged": false, "summary": "Android: bindId undefined for child templates", "creator": { "name": "sandeep14790", "key": "sandeep14790", "displayName": "sandeep", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sandeep14790", "key": "sandeep14790", "displayName": "sandeep", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "With Ti SDK 9.3.0.GA", "closedSprints": [ { "id": 1212, "state": "closed", "name": "2020 Sprint 25", "startDate": "2020-12-07T22:11:00.000Z", "endDate": "2020-12-18T22:11:00.000Z", "completeDate": "2020-12-18T16:35:34.544Z", "originBoardId": 114 }, { "id": 1214, "state": "closed", "name": "2021 Sprint 1", "startDate": "2021-01-04T17:38:57.886Z", "endDate": "2021-01-15T17:38:00.000Z", "completeDate": "2021-01-15T20:35:11.006Z", "originBoardId": 114 }, { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457909", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, do you have reproducible code?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-16T11:31:51.000+0000", "updated": "2020-12-16T11:31:51.000+0000" }, { "id": "457911", "author": { "name": "sandeep14790", "key": "sandeep14790", "displayName": "sandeep", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any sample listView code with itemClick event giving above issue in android with Ti SDK 9.3.0.GA\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\n\r\nvar myTemplate = {\r\n properties: {\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.FILL\r\n },\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.View',\r\n bindId: 'outerView', \r\n properties: {\r\n backgroundColor: '#fcf',\r\n height: Ti.UI.SIZE,\r\n //layout: 'vertical',\r\n left: 15,\r\n right: 15,\r\n width: Ti.UI.FILL\r\n },\r\n childTemplates: [\r\n { \r\n type: 'Ti.UI.Label', \r\n bindId: 'idClick', \r\n properties: { \r\n color: 'black',\r\n height: \"150dp\",\r\n font: { fontFamily:'Arial', fontSize: '20dp', fontWeight:'bold' },\r\n //left: 0\r\n }\r\n },\r\n \r\n ]\r\n }\r\n ]\r\n};\r\n\r\n// Create the list view\r\nvar listView = Ti.UI.createListView({\r\n templates: { 'template': myTemplate },\r\n defaultItemTemplate: 'template',\r\n top: Ti.Platform.osname === 'iphone' ? 20 : 0 // Allow for iOS status bar\r\n});\r\n\r\n// Create the list data set\r\nvar fruitSection = Ti.UI.createListSection({ });\r\nvar fruitDataSet = [\r\n { idClick: {text: 'Click me!!!'}},\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\n\r\n// Add the data set to the list view\r\nvar sections = [fruitSection];\r\nlistView.setSections(sections);\r\n\r\nlistView.addEventListener('itemclick', function(e) {\r\n\tTi.API.info(\"BindId: \" + e.bindId +\"..\"+JSON.stringify(e))\r\n\talert(\r\n \"BindId: \" + e.bindId \r\n ); \r\n\t\r\n\t\r\n});\r\n\r\n// Add the list view to the main window and open it\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-16T11:36:02.000+0000", "updated": "2020-12-16T11:55:40.000+0000" }, { "id": "457912", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks, that is helpful. I'll have a look", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-16T11:55:50.000+0000", "updated": "2020-12-16T11:55:50.000+0000" }, { "id": "457914", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can reproduce the problem. Thanks for the code. \r\n\r\nLooks like this issue is related to TIMOB-28291, I recommend monitoring that ticket.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-16T14:13:15.000+0000", "updated": "2020-12-16T14:13:31.000+0000" }, { "id": "457919", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12348", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-12-17T04:07:39.000+0000", "updated": "2020-12-17T04:07:39.000+0000" }, { "id": "458031", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-18T16:37:11.000+0000", "updated": "2021-01-18T16:37:11.000+0000" }, { "id": "458039", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, backport for 9_3_X merged for 9.3.1 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-01-19T17:46:58.000+0000", "updated": "2021-01-19T19:53:32.000+0000" }, { "id": "458356", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is still an issue in SDK 9.3.2 if you have a bindId in the parent view and tap on one of the child views. The same works on iOS - I need to get together a test case.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-03-07T22:07:51.000+0000", "updated": "2021-03-07T22:07:51.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }