{ "id": "64835", "key": "TIMOB-3751", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-11T21:54:11.000+0000", "created": "2011-04-27T09:02:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_tableviewrow", "qe-closed-3.2.2", "qe-testadded" ], "versions": [ { "id": "11243", "name": "Release 1.6.0 M10", "archived": true, "released": true, "releaseDate": "2011-02-21" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-14T06:46:57.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": "This code supposedly changes the background image of the clicked row:\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n\r\nvar myTable = Titanium.UI.createTableView({});\r\n\r\nfor (var i = 0; i < 40; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight:30,color:\"white\"\r\n\t});\r\n\t\r\n\trow.backgroundImage='KS_nav_views.png';\r\n\t\r\n\tmyTable.appendRow(row);\t\r\n}\r\n\r\nvar sections = myTable.data;\r\nvar section = sections[0];\r\n\r\nmyTable.addEventListener('click', function(e){\r\n alert(e.row);\r\n e.row.backgroundImage='KS_nav_ui.png';\r\n});\r\n\r\n\r\nwindow.add(myTable);\r\n\r\n\r\nwindow.open({modal:true});\r\n{code}\r\n\r\nBut it does nothing.\r\n\r\nThere is a Helpdesk ticket that encounter this: http://support.appcelerator.com/tickets/APP-126267/homepage\r\n\r\nWhat this ticket is asking, is not to change the bg image, but to remove it. That could be a feature request as well.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Dynamically change the backgroundImage of a TableViewRow", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.3, 7.0.3 iPhone Simulator", "comment": { "comments": [ { "id": "133090", "author": { "name": "mattcongrove", "key": "mattcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another ticket with this problem: http://support-admin.appcelerator.com/display/APP-637384\n\nAlso, CDC is waiting on this functionality.\n\nThe table needs to be triggered to redraw when the backgroundImage property is modified.", "updateAuthor": { "name": "mattcongrove", "key": "mattcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-03T10:36:46.000+0000", "updated": "2011-05-03T10:36:46.000+0000" }, { "id": "133231", "author": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed spelling error in title.", "updateAuthor": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-05T14:08:29.000+0000", "updated": "2011-05-05T14:08:29.000+0000" }, { "id": "195357", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator, issue still reproducible. I have noticed that if you click on the same row twice, it will change the image, but it should work the first time. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-18T16:13:18.000+0000", "updated": "2012-05-18T16:13:18.000+0000" }, { "id": "250944", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue exist with release 3.1.0.if you click on the same row twice, it will change the image,\n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \niOS iPhone Simulator: iOS SDK version: 6.0\n\n\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T06:02:49.000+0000", "updated": "2013-05-09T06:02:49.000+0000" }, { "id": "292478", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:54:11.000+0000", "updated": "2014-02-11T21:54:11.000+0000" }, { "id": "296289", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix, hence closing the issue.\r\n\r\nEnvironment used:\r\nDevice : iPhone 5s , iOS version : 7.1\r\nSDK: 3.2.2.v20140221161255\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.2.201402280732\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 Beta 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-10T11:35:53.000+0000", "updated": "2014-03-10T11:35:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }