{ "id": "131632", "key": "ALOY-1061", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-06-12T06:44:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "require", "views", "xml" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:25:37.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "In JS you can get a specific controller view (including its children of course) by passing its ID to {{getView()}} like this:\r\n\r\n{code:javascript}\r\nvar view = Alloy.createController('foo').getView('bar');\r\n{code}\r\n\r\nI'd like to do the same in XML:\r\n\r\n{code:xml}\r\n\r\n \r\n ..\r\n \r\n\r\n{code}\r\n\r\nPlease note that the implementation should only create the {{foo}} controller *once*, so that both the {{header}} and {{footer}} view share the same controller. Otherwise it wouldn't make much sense since the actual benefit/use-case is that these 2 views can interact with/on each other while providing views at 2 or more different locations in te parent controller/view.", "attachment": [], "flagged": false, "summary": "Alloy: Require a specific view via XML", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.4.0-rc", "comment": { "comments": [ { "id": "311535", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Reported by [~fokke] (changed by jira). ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-30T01:47:18.000+0000", "updated": "2014-06-30T01:47:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }