{ "id": "162891", "key": "ALOY-1516", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "18312", "name": "alloy 1.9.2", "archived": false, "released": true, "releaseDate": "2016-09-09" }, { "id": "18330", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-06T03:39:52.000+0000", "created": "2016-08-30T22:32:42.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "label", "labels" ], "versions": [ { "id": "17730", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-07-05" }, { "id": "18023", "name": "Release 5.3.1", "archived": false, "released": true, "releaseDate": "2016-04-20" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-09-15T14:17:37.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "h5. Problem Description:\r\n\r\nText Property inside UI Element Label is not displaying output of a method used in combination with a text in an expected manner.\r\n\r\nh5. Sample Code:\r\n\r\nAlloy index.xml file content:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nAlloy index.js file inside controller:\r\n\r\n{code}\r\n$.index.open();\r\n{code}\r\n\r\nh5. Output: 'Version:' + Ti.App.getVersion()\r\n\r\nh5. Expected Output: Version:1.0\r\n\r\nh5. Scenario 1:\r\n\r\n\r\nOutput is: 'Version:' + Ti.App.getVersion()\r\n\r\nh5. Scenario2:\r\n\r\nOutput is : 1.0Version\r\n\r\nThis output the value as expected but if we prefix some text before the method, it consider the whole as a text and displays it inside label rather executing the method. \r\n\r\nI have tried with some other methods like Ti.getVersion() and it is the same behavior.\r\n\r\nPlease let us know if any other info is required.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Alloy: Text property inside LABEL element not displaying output of any method in combination with any text correctly", "creator": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "subtasks": [], "reporter": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.0.0\r\n npm Version = 2.14.2\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.4.0.GA\r\n SDK Path = /Users/nmishra/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.GA\r\n Target Platform = iphone", "closedSprints": [ { "id": 705, "state": "closed", "name": "2016 Sprint 18 Tooling", "startDate": "2016-08-27T00:16:26.485Z", "endDate": "2016-09-10T00:16:00.000Z", "completeDate": "2016-09-13T20:21:37.063Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "394856", "author": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "body": "INC0397519", "updateAuthor": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "created": "2016-08-30T22:41:04.000+0000", "updated": "2016-08-30T22:41:04.000+0000" }, { "id": "395151", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/796", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-09-01T22:33:16.000+0000", "updated": "2016-09-01T22:33:16.000+0000" }, { "id": "395360", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged into master branch.", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-06T03:39:39.000+0000", "updated": "2016-09-06T03:39:39.000+0000" }, { "id": "396214", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro, OSX 10.11.6\r\nAppc Core: 5.5.0\r\nAppc NPM: 4.2.7\r\nTi SDK: 5.5.0.GA\r\nGalaxy Note 3 (Android 5.0)\r\nLumia 930 (Windows 10 Mobile)\r\niPhone 7 Plus simulator (iOS 10.0)\r\n\r\nThe label now displays the expected output of {{Version:1.0}}\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-15T14:17:31.000+0000", "updated": "2016-09-15T14:17:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }