{ "id": "125182", "key": "TIMOB-16558", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-19T20:34:24.000+0000", "created": "2014-01-22T01:08:00.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-19T20:34:24.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": "13719", "name": "Windows Hybrid", "description": "Windows Hybrid platform" } ], "description": "We need to enable users to access native functionality from inside Windows Hybrid.\r\n\r\nSome initial work has been done on the functionality. For instance, you can do the following:\r\n\r\n{code}\r\nvar button = Ti.MobileWeb.WP8.createInstance('System.Windows.Controls.Button', [], []);\r\nbutton.setProp('Content', 'Click me, I\\'m Native');\r\n\r\nvar children = Ti.MobileWeb.WP8.getRootGrid().getProp('Children');\r\nchildren.invoke('RemoveAt', ['System.Int32'], [0]);\r\nchildren.invoke('Add', ['System.Windows.Controls.Button'], [button]);\r\n{code}\r\n\r\nThis code creates a native button and sets its title to \"Click me, I’m Native”. It then removes the web view hosting the mobile web app from the screen and replaces it with this button.\r\n\r\nWe need to create a simple sample module project (similar to http://docs.appcelerator.com/titanium/latest/#!/guide/iOS_Module_Development_Guide) and show a developer how to utilize this functionality.\r\n", "attachment": [], "flagged": false, "summary": "Windows Hybrid: Create module development guide", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "294138", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5361", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-21T17:14:19.000+0000", "updated": "2014-02-21T17:14:19.000+0000" }, { "id": "294188", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Started this guide: https://wiki.appcelerator.org/display/guides2/Windows+Phone+8+Module+Development+Guide", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-21T21:31:48.000+0000", "updated": "2014-02-21T21:31:48.000+0000" }, { "id": "294697", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-25T23:02:19.000+0000", "updated": "2014-02-25T23:02:19.000+0000" }, { "id": "294703", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dtoth]: Oops. Sorry. It should be the Dark icons. Those are the only ones supported according to the Windows Documentation. Need to document that.", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-25T23:19:00.000+0000", "updated": "2014-02-25T23:19:00.000+0000" }, { "id": "294837", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Alright, I figured out what's going wrong. I see 3 issues:\n\n# `grid.Clear()` should be moved to the end of the file, just before the call to `grid.Add(canvas)`. If it is called to early, errors will be suppressed.\n# I'm getting an error \"Object doesn't support property or method 'getEnum' at ... line 30: `Ti.MobileWeb.WP8.getEnum('System.Windows.Media.Colors', 'Blue')`\n# The line number is off by one. That's actually line 29 from my foo.js.\n", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2014-02-26T20:16:40.000+0000", "updated": "2014-02-26T20:16:40.000+0000" }, { "id": "294884", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi [~dtoth],\n\nAre you testing the samples against my PR? Bryan did not implement some of the APIs, such as getEnum. He only implemented the createInstance, getProp, setProp and invoke APIs.\n\nI just did a fresh rebuild of the SDK with my PR and I am not getting errors you are seeing.​", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-27T01:20:47.000+0000", "updated": "2014-02-27T01:20:47.000+0000" }, { "id": "295298", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Looks good to me.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2014-03-03T18:58:52.000+0000", "updated": "2014-03-03T18:58:52.000+0000" }, { "id": "296198", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Master Fixes: https://github.com/appcelerator/titanium_mobile/pull/5445", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-07T23:14:14.000+0000", "updated": "2014-03-07T23:14:14.000+0000" }, { "id": "308983", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as this has been created.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-13T20:50:32.000+0000", "updated": "2014-06-13T20:50:32.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }