{ "id": "173435", "key": "TIMOB-27072", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2019-04-03T08:59:19.000+0000", "priority": null, "labels": [ "data-binding" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-09T23:17:12.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": [], "description": "In our application we have a composite view that shares models/collections across many sub views. We also like to utilize data binding wherever possible, however this presents a bit of a challenge. We can only bind to Collections and Models defined in the XML markup, and we cannot replace those Collections/Models with shared references across each sub controller. It appears today our only option is to use a singleton Collection/Model which is not ideal if you need multiple instances of Collections/Models to be accessed across multiple view bindings. If setting the Collection/Model inside the sub controller is not an option perhaps we could introduce a method of passing a reference to the Collection/Model in the createController statement.", "attachment": [], "flagged": false, "summary": "When using Alloy Data Binding, allow the dataCollection to be set in the controller", "creator": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "447558", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, can you share some native guide or docs link on how this is handled natively? or a similar native equivalent of the Alloy data building in the native environment. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-04-09T18:09:24.000+0000", "updated": "2019-04-09T18:09:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }