{ "id": "133717", "key": "AC-1412", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2014-08-26T04:45:10.000+0000", "created": "2014-07-25T14:44:05.000+0000", "labels": [ "TCSupportTriage", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:50.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In the code, I was trying to update the title of a disabled button. If the button is disabled, the title cannot be updated. I should be able to update the button title even if disabled. There is a workaround in place, but I don't think that is necessary.", "attachment": [], "flagged": false, "summary": "Cannot update Button title if disabled", "creator": { "name": "bradenpowers", "key": "bradenpowers", "displayName": "Braden Powers", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bradenpowers", "key": "bradenpowers", "displayName": "Braden Powers", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "317008", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have tested this issue. It's not a bug. You can use touchEnabled property. And if a button is touchEnabled false. We can change the Button title.\r\n\r\nh3.Testing Environment: \r\nTitanium SDK: 3.3.0.GA,\r\nTitanium CLI: 3.3.0,\r\nIOS Simulator: 7.1,\r\nOS X Version: 10.9.3,\r\nAppcelerator Studio: 3.3.0\r\n\r\nh3.Steps to Test:\r\n1. Create a Classic project.\r\n2. Paste this code in app.js file.\r\n3. Run this code with the testing environment\r\n\r\nh3.Test Case\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : \"Button State\",\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar b1 = Titanium.UI.createButton({\r\n\tcolor : '#fff',\r\n\ttop : 30,\r\n\twidth : 150,\r\n\theight : Ti.UI.SIZE,\r\n\ttitle : 'Test Button',\r\n\ttouchEnabled : false,\r\n\tbackgroundColor : 'Red'\r\n});\r\n\r\nb1.addEventListener('click', function() {\r\n\talert('I am Enabled');\r\n});\r\n\r\n// Create a Button.\r\nvar b2 = Ti.UI.createButton({\r\n\ttitle : 'Enable/Disable',\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE,\r\n\ttop : 20,\r\n\ttoggle : true\r\n\r\n});\r\n\r\n// Listen for click events.\r\nb2.addEventListener('click', function(e) {\r\n\tif (e.source.toggle == true) {\r\n\t\tb1.touchEnabled = true;\r\n\t\tb1.title = 'Tuch Enable';\r\n\t\tb2.toggle = false;\r\n\r\n\t} else {\r\n\t\tb1.touchEnabled = false;\r\n\t\tb1.title = 'Tuch Disable';\r\n\t\tb2.toggle = true;\r\n\t}\r\n});\r\n\r\n// Create a Button.\r\nvar b3 = Ti.UI.createButton({\r\n\ttitle : 'Title Change',\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE,\r\n\ttop : 20,\r\n});\r\n\r\n// Listen for click events.\r\nb3.addEventListener('click', function() {\r\n\tb1.title = \"motiur\";\r\n});\r\n\r\nwin.add(b1);\r\nwin.add(b2);\r\nwin.add(b3);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-05T05:40:25.000+0000", "updated": "2014-08-26T04:43:41.000+0000" }, { "id": "320273", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please use our testcase and report back if it's not working for you. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-26T04:45:10.000+0000", "updated": "2014-08-26T04:45:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }