{ "id": "145931", "key": "AC-398", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-11T22:55:30.000+0000", "created": "2015-03-19T07:29:50.000+0000", "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-11T22:55:30.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I try to use annotations as a collection inside a ti.map module Modules.Map.View.\r\nDocumentation says this is possible as of Alloy 1.4: [Alloy_Data_Binding|http://docs.appcelerator.com/titanium/3.0/#!/guide/Alloy_Data_Binding]\r\nPlease consider the following in my view xml:\r\n\r\n{noformat}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{noformat}\r\n\r\nIn my controller I do a\r\n{noformat}\r\nAlloy.Collections.pins.fetch();\r\n{noformat}\r\n\r\nEverything works fine for the above TableView.\r\nHowever for both above $.mapView's which contain the same dataCollection attribute as the TableView, I get the following error:\r\n\r\n*[ERROR] message = \"null is not an object (evaluating '$model.__transform')\";*\r\n\r\nWhich according to Tony Lukasavage comment in the following post [undefined-is-not-an-object-evaluating-modeltransform|https://developer.appcelerator.com/question/155544/undefined-is-not-an-object-evaluating-modeltransform] means: \"...you're attempting to use data binding notation on elements that are not inside an element with a dataCollection...\"\r\n\r\nI am using Ti SDK 3.5.1.GA and Alloy 1.5.1, testing on iOS Simulator 8.2\r\nDoes anybody succesfully used Annotations for a dataCollection as of Alloy 1.4+?\r\n", "attachment": [], "flagged": false, "summary": "Error Alloy Data Binding Annotations", "creator": { "name": "karaoak", "key": "karaoak", "displayName": "Frank Eijking", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "karaoak", "key": "karaoak", "displayName": "Frank Eijking", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.5.1.GA and Alloy 1.5.1, testing on iOS Simulator 8.2 and on device iPhone 6 and 6 Plus", "comment": { "comments": [ { "id": "346516", "author": { "name": "karaoak", "key": "karaoak", "displayName": "Frank Eijking", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also tested with Alloy 1.7.0-dev and 1.4.0, same issue.", "updateAuthor": { "name": "karaoak", "key": "karaoak", "displayName": "Frank Eijking", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-19T08:15:22.000+0000", "updated": "2015-03-19T08:35:08.000+0000" }, { "id": "362065", "author": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThis issue could not be reproduced. Following test case shows Alloy data binding works properly with ti.map module.\r\n\r\n*Testing Environment:*\r\nAppcelerator Studio, build: 4.2.0.201508141038\r\nTitanium SDK: 4.1.0 GA\r\nAlloy version : 1.7.6\r\niOS simulator: iphone 5s(v8.1)\r\nOS X version: 10.9.5\r\n\r\n*Steps to reproduce:*\r\n1. Create an alloy project\r\n2. Add ti.map module\r\n2. Copy following test cases in respective files.\r\n2. Run the app.\r\n\r\nObserve that data binding annotation is working perfectly with the ti.map module.\r\n\r\n*Test Case*\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\r\n\t\t\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nif (!Ti.App.Properties.hasProperty('seeded')) {\r\n\tvar pins = [\r\n\t\t{ title: \"Appcelerator\", latitude: 37.3892876, longitude: -122.0502364},\r\n\t\t{ title: \"Zone 1\", latitude: 37.386697, longitude: -122.052028},\r\n\t\t{ title: \"Someplace nearby\", latitude: 37.3880608, longitude: -122.0559039}\r\n\t];\r\n\tfor(var i=0,j=pins.length;i