{ "id": "174493", "key": "TIMOB-27634", "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": [], "resolution": null, "resolutiondate": null, "created": "2019-11-27T10:48:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "tableview" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" }, { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57966", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "120706", "key": "TIMOB-15387", "fields": { "summary": "Android: using Label with tableViewRow prevents selection", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2020-02-17T12:03:00.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Using a TableViewRow with the hasCheck property produces differing results for iOS and Android, under certain conditions.\r\n\r\n*Test Steps*\r\n1. Create a new classic app\r\n2. Download app.js from here and copy-paste the contents into the empty app.js \r\n3. Run the app on iOS and Android (using any recent SDK)\r\n4. Tap and select one cell from Table 1, 2 and 3\r\n\r\n*Actual result*\r\niOS: A check-mark appears on each selected cell in all 3 tables.\r\nAndroid: A check-mark appears only under Table 1 and Table 2. No check-mark appears under any cell in Table 3.\r\n\r\n*Workaround (Android)*\r\nIn app.js, go right towards the bottom. You will see the following code:\r\n\r\n\r\n{code:js}\r\ntable3.addEventListener('click', function(e) {\r\n if (e.rowData.hasCheck) {\r\n e.rowData.hasCheck = false;\r\n } else {\r\n e.rowData.hasCheck = true;\r\n }\r\n{code}\r\n\r\nIf you change _rowData_ to just _row_ (as in the previous two tables), and re-run the app, Android will now show the check-mark upon selection in Table 3.\r\n\r\n*Expected result*\r\nUsing _rowData_ or _row_ both work on iOS. Only _row_ works for Android whereas both should work?\r\n", "attachment": [ { "id": "67153", "filename": "app.js", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-11-26T15:59:47.000+0000", "size": 7639, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: TableViewRow hasCheck Property Does Not Work as Expected", "creator": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "environment": "Appc CLI 7.1.2\r\nStudio 5.1.4.201909061933\r\nEmulator: Nexus 4 (6.0 - API 23)\r\nDevices: Pixel 3a (10.0/Q - API 29), iPhone 6 (iOS 12)", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }