{ "id": "151347", "key": "TIMOB-19556", "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": "2015-09-21T12:10:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TableView", "applyProperties", "data", "reprod" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-11-11T14:52:48.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": "TableView data properties do not work inside the applyProperties. But it works as expected on iOS. It should work for both http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-method-applyProperties\r\n\r\n*Steps to Reproduce:*\r\n1.Run this code with the testing environment.\r\n2. And check data is loaded in the tableView or not?\r\n\r\n*Testing Environment:*\r\nCommand-Line Interface, version 5.0.1,\r\nTi SDK: 5.0.0.GA,\r\nAndroid Version: 4.2.2, 4.4.2, 5.1.0,\r\nStudio Version: 4.3.0\r\n\r\n*Test Code:*\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\n// Create a TableView.\r\nvar table = Ti.UI.createTableView({\r\n\t//backgroundColor:'red',\r\n});\r\n\r\nvar tableData = [{\r\n\ttitle : 'Apples'\r\n}, {\r\n\ttitle : 'Bananas'\r\n}, {\r\n\ttitle : 'Carrots'\r\n}, {\r\n\ttitle : 'Potatoes'\r\n}];\r\n\r\ntable.applyProperties({\r\n\tdata : tableData,\r\n\tbackgroundColor : 'gray',\r\n\ttop : 50,\r\n\tbottom : 20,\r\n\tleft : 20,\r\n\tright : 20,\r\n\tborderRadius : 10\r\n});\r\n\r\n//table.data = tableData;\r\n\r\n// Add to the parent view.\r\nwin.add(table);\r\n\r\nwin.open();\r\n\r\n{code}\r\nThanks.", "attachment": [], "flagged": false, "summary": "Android: TableView data properties does not work inside the applyProperties.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "403849", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can re-confirm the issue for SDK 6.0.1.GA. In Android, TableView data properties do not work inside the applyProperties. But the other property work fine in applyProperties. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-23T18:23:31.000+0000", "updated": "2016-12-23T18:23:31.000+0000" }, { "id": "423511", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\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-07-05T16:39:56.000+0000", "updated": "2017-07-05T16:39:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }