10-02-2013 10:28 AM
I'm developing an application using the Webworks SDK for BB10 (not playbook).
I'm trying to create an application menu using the blackberry.ui.menu but webinspector reports it as undefined.
I'm working on Windows platform with WebWorks SDK version 220.127.116.11
I tried console.log(blackberry.ui) and I got :
(As I had included blackberry.ui.toast in my config.xml) toast and dialog are working fine for me, but not menu.
I found that I do not have 'menu' folder in Webworks SDK path\Framework\ext\
I only have folders ui.contextmenu, ui.cover, ui.dialog and ui.toast . Is that an issue?
By the way I have configured the config.xml for Debugging and here is my config.xml
<feature id="blackberry.app" /> <feature id="blackberry.ui" /> <feature id="blackberry.ui.menu" /> <feature id="blackberry.ui.toast" /> <feature id="blackberry.identity" /> <feature id="blackberry.system" /> <access uri="https://getpocket.com" subdomains="true" />
I make ajax posts to the getpocket domain specified, but all the work is done by the local files. I also tried adding access uri to * and disabling websecurity, but it doesn't seem to work.
I would be glad if anyone could guide me where I could be going wrong.
Solved! Go to Solution.
10-03-2013 03:16 PM
It's definitely not in the SDK and is documented as BBOS only on the API site.
For BB10, we have blackberry.ui.contextmenu
10-03-2013 03:25 PM
10-04-2013 01:37 AM
Here is the kitchenSink example: https://github.com/blackberry/WebWorks-Community-S
When the application is run, under the User Experience section, Click on Menu API.
I get : blackberry.ui.menu object not found
10-04-2013 01:41 PM
That repository is for WebWorks on BBOS and PlayBook. The samples for BB10 are in the BB10-WebWorks-Community-Samples repository here: https://github.com/blackberry/BB10-WebWorks-Commun
10-04-2013 02:02 PM
Actually Tim (both of you) there are two additional errors with a BBui compile
blackberry.system.event is flagged as is ... errm - it's in a GitHub issue somewhere
I don't wanna spend time researching trivial stuff but it is a concern that bbwp throws errors like this on the demo bbui
10-04-2013 02:12 PM
That's a good point. The samples for bbUI.js have been split into separate ones for each platform, so I don't know why there are still references to extensions that don't exist. It should through only a warning though, not a full error.
10-04-2013 02:18 PM
Without looking (I've spent hours fixing BBui earlier this week for Z30 - no thanks) my simple choice is to ignore the errors
If it works...