{ "id": "131720", "key": "TIMOB-17160", "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": "2014-06-13T20:12:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "label", "title", "titleid" ], "versions": [], "issuelinks": [ { "id": "38399", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "131722", "key": "AC-788", "fields": { "summary": "textid is not working after Label is shown", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:06.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": "The property titleid/textid can not reset if window was opened.\r\n\r\napp.js\r\n{code:javascript}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n titleid: L(\"title\")\r\n});\r\n\r\nvar win2 = Titanium.UI.iOS.createNavigationWindow({\r\n window: win1\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'change the title'\r\n});\r\n\r\nbutton.addEventListener('click', function(){\r\n win1.titleid = L(\"new_title\", \"not found\");\r\n});\r\n \r\nwin1.add(button);\r\n\r\nwin2.open();\r\n{code}\r\n\r\ni18n (strings.xml)\r\n{code:xml}\r\n\r\n\r\n Title\r\n\tNew Title\r\n\r\n{code}\r\n\r\nAlso happened in Ti.UI.Label.textid.\r\n", "attachment": [], "flagged": false, "summary": "iOS: titleid/textid can not be changed after window is opened", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK: 3.2.3.GA, iOS Simulator 7.1", "comment": { "comments": [ { "id": "309081", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nOnly one of title or titleid should be specified, Based on your code, title of window 2 has been defined first, so the titleid will not affect any more. \r\nOn the other hand, when you have title and titleid properties together(although it is a wrong way), title will be consider as priority. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-16T06:29:42.000+0000", "updated": "2014-06-16T06:30:27.000+0000" }, { "id": "309088", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry ,but I don't fully understand. If window2 has defined title or titleid then I can change the title later without any problems ,but I can't do anything with titleid even if only titleid has been defined. That's normal?", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T07:39:37.000+0000", "updated": "2014-06-16T07:43:50.000+0000" }, { "id": "309102", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "oh, I see your problem. Seems titleid can not re-set after window is open. I will move this ticket to our engineer team to check this. Thank you for your report.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-16T13:04:14.000+0000", "updated": "2014-06-16T13:04:14.000+0000" }, { "id": "309105", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T13:12:10.000+0000", "updated": "2014-06-16T13:12:10.000+0000" }, { "id": "315911", "author": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does this issue cover the case that a window title is not possible to be changed after the window is opened if already a title was set but no titleid?", "updateAuthor": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-07-26T09:31:07.000+0000", "updated": "2014-07-26T09:31:07.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }