{ "id": "133731", "key": "TIMOB-17398", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-27T20:34:44.000+0000", "created": "2014-07-25T16:43:38.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "android", "parity" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "39366", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "133733", "key": "MOD-1843", "fields": { "summary": "Cloud Example: unable to check public_access when selecting readers or writers in create ACL", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-27T20:34:44.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": "Rows that are created by passing an object with properties to the table's data array do not have custom properties set.\r\n\r\nh5. Steps to reproduce:\r\n0. Create a Titanium Android app\r\n1. Copy the example code below into the app.js\r\n2. Run the app\r\n3. Notice that when you click on the 1st row, the check mark does not appear.\r\n4. Notice that when you click on the 2nd row, the check mark appears.\r\n5. Notice that \"rowId\" is being set on both rows, the difference is that the 2nd row is being created via createTableViewRow and the first row is being created by passing an object.\r\n6. Run the same example on iOS and notice that both rows can be checked\r\n\r\nThe issue here is that the custom property \"rowId\" is not being set on the row when the row is not explicitly created using createTableViewRow.\r\n\r\nh5. Test code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n\r\nvar table = Ti.UI.createTableView({\r\n backgroundColor: '#fff',\r\n top: 0, bottom: 0\r\n});\r\nwin.add(table);\r\ntable.addEventListener('click', function (evt) {\r\n Ti.API.info('##### rowId: ' + evt.row.rowId);\r\n if (evt.row.rowId) {\r\n evt.row.hasCheck = !evt.row.hasCheck;\r\n }\r\n});\r\n\r\nvar data = [];\r\ndata.push({ title: 'Not Checkable', hasCheck:false, rowId: 'test1' });\r\ndata.push(Ti.UI.createTableViewRow({ title: 'Checkable', hasCheck:false, rowId: 'test2' }));\r\ntable.setData(data);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableViewRows do not have custom properties if row not explicitly created", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.3.0.GA\r\nMotorola Razr HD Android v 4.1.1", "comment": { "comments": [ { "id": "319663", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces in Android with\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\n\r\nIt works fine in iOS with\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\n\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\niOS Device : iphone 4, iOS 7.1\r\n\r\nalso rowId of row 1 is \"undefined\" in android and iOS shows rowId as \"test1\".", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-21T08:06:00.000+0000", "updated": "2014-08-21T08:06:00.000+0000" }, { "id": "422986", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T20:34:44.000+0000", "updated": "2017-06-27T20:34:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }