{ "id": "120605", "key": "TIMOB-15373", "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": "2013-09-30T02:21:18.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "labe", "textid" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-10-03T11:08:02.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Impossible to set textid property after creation label.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar lab = Ti.UI.createLabel({\r\n\tcolor: \"red\",\r\n\ttext: \"text: Hello\"\r\n});\r\n\r\n\r\n//lab.text = L(\"hello\"); // WORKS\r\nlab.textid = \"hello\"; // DOESN'T WORK\r\n\r\nwin.add(lab);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Setting \"textid\" on a Label after creation does not work", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Tested on iOS & Ti: 3.1.2.GA", "comment": { "comments": [ { "id": "317677", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\nTitanium Command-Line Interface, CLI version 3.3.0, \r\nTitanium SDK version 3.3.0.GA\r\n iOS SDK: 7.1\r\n Building for iOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-08T09:13:21.000+0000", "updated": "2014-08-08T09:53:18.000+0000" }, { "id": "325452", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue causes another problem - It is not possible to set up textid for a label in ListItemTemplate. Example:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nvar myTemplate = {\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.Label',\r\n bindId: 'info',\r\n properties: {\r\n color: 'black',\r\n font: { fontFamily:'Arial', fontSize: '20dp', fontWeight:'bold' }\r\n }\r\n }\r\n ]\r\n};\r\n\r\nvar listView = Ti.UI.createListView({\r\n templates: { 'template': myTemplate },\r\n defaultItemTemplate: 'template'\r\n});\r\n\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits / Frutas'});\r\nvar fruitDataSet = [\r\n { info: {text: 'Apple'}}, // No problem\r\n { info: {textid: 'apple'}} // Will not show any title\r\n];\r\n\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nlistView.setSections(sections);\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\nEspecially annoying in Alloy View when instead of textid=\"xxx\" must be used text=\"L(xxx)\".", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T17:14:35.000+0000", "updated": "2014-09-24T17:15:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }