{"action":"created","issue":{"url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/71","labels_url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/71/comments","events_url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/71/events","html_url":"https://github.com/viezel/napp.alloy.adapter.restapi/issues/71","id":103075527,"number":71,"title":"Output result to xml","user":{"login":"sobytes","id":2689776,"avatar_url":"https://avatars.githubusercontent.com/u/2689776?v=3","gravatar_id":"","url":"https://api.github.com/users/sobytes","html_url":"https://github.com/sobytes","followers_url":"https://api.github.com/users/sobytes/followers","following_url":"https://api.github.com/users/sobytes/following{/other_user}","gists_url":"https://api.github.com/users/sobytes/gists{/gist_id}","starred_url":"https://api.github.com/users/sobytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobytes/subscriptions","organizations_url":"https://api.github.com/users/sobytes/orgs","repos_url":"https://api.github.com/users/sobytes/repos","events_url":"https://api.github.com/users/sobytes/events{/privacy}","received_events_url":"https://api.github.com/users/sobytes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T17:20:01Z","updated_at":"2015-08-25T17:26:25Z","closed_at":null,"body":"Hi All,\r\n\r\nHow do i export the result to the view?\r\n~~~\r\nvar api = Alloy.createCollection(\"api\");\r\n\tapi.fetch({\r\n\t\turl: \"http://jsonplaceholder.typicode.com/posts\",\r\n\t\t// uncomment and add data to post\r\n\t\t//data : {},\r\n\t\tadd: true,\r\n\t\tsilent: true,\r\n\t\tprocessData : false,\r\n\t\tsuccess : function(_model, _response) {\r\n\t\t\tTi.API.info(_response);\r\n\t\t},\r\n\t\terror : function(_model, _response) {\r\n\t\t\tTi.API.info('Events Fetch Error');\r\n\t\t\tTi.API.info(_response);\r\n\t\t}\r\n\t});\r\n~~~\r\n\r\nAnd my view\r\n~~~\r\n<Alloy>\r\n\t<Collection src=\"api\"/>\r\n\t<Window class=\"container\" onOpen=\"windowOpen\">\r\n\t\t<TableView id=\"table\" dataCollection=\"api\">\r\n\t\t\t<TableViewRow>\r\n\t\t\t\t<Label text=\"{title}\"></Label>\r\n\t\t\t\t<Label text=\"{body}\"></Label>\r\n\t\t\t</TableViewRow>\r\n\t\t</TableView>\r\n\t</Window>\r\n</Alloy> \r\n~~~\r\n\r\nCan you tell me where i am going wrong?"},"comment":{"url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/comments/134677766","html_url":"https://github.com/viezel/napp.alloy.adapter.restapi/issues/71#issuecomment-134677766","issue_url":"https://api.github.com/repos/viezel/napp.alloy.adapter.restapi/issues/71","id":134677766,"user":{"login":"sobytes","id":2689776,"avatar_url":"https://avatars.githubusercontent.com/u/2689776?v=3","gravatar_id":"","url":"https://api.github.com/users/sobytes","html_url":"https://github.com/sobytes","followers_url":"https://api.github.com/users/sobytes/followers","following_url":"https://api.github.com/users/sobytes/following{/other_user}","gists_url":"https://api.github.com/users/sobytes/gists{/gist_id}","starred_url":"https://api.github.com/users/sobytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobytes/subscriptions","organizations_url":"https://api.github.com/users/sobytes/orgs","repos_url":"https://api.github.com/users/sobytes/repos","events_url":"https://api.github.com/users/sobytes/events{/privacy}","received_events_url":"https://api.github.com/users/sobytes/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T17:26:25Z","updated_at":"2015-08-25T17:26:25Z","body":"Ok sussed it i have put together a little sample project for newbie like me to save some time.\r\n\r\nhttps://bitbucket.org/SoBytes/napp.alloy.adapter.restapi-alloy-example/src\r\n\r\n"}}