BlackBerry.UI.menu is not defined

Hello

I'm developing an application using the SDK Webworks for BB10 (no playbook).

I am creating an application menu using the blackberry.ui.menu but webinspector reports it as undefined.

I'm working on Windows with WebWorks SDK version 1.0.4.11 platform

I tried console.log (blackberry.ui) and I got:

Object {toast: object}

(As I understood my config file blackberry.ui.toast. XML) toast and dialogue are works fine for me, but no menu.

I found that I have no 'menu' file Webworks SDK path\Framework\ext\

I have only ui.toast, ui.cover, ui.dialog and ui.contextmenu files. Is this a problem?

Either by the way, I configured the file config.xml for debugging and here is my file config.xml

    
    
    
    
    
    
    https://getpocket.com" subdomains="true" />

I do posts from ajax to the getpocket domain specified, but all the work is done by local files. I also tried to add access uri * and disabling websecurity, but it doesn't seem to work.

I'd be happy if someone could guide me where I could go wrong.

This repository is for WebWorks BBOS and PlayBook. Samples for BB10 are in the BB10-WebWorks-community-samples repository here: https://github.com/blackberry/BB10-WebWorks-Community-Samples

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones Menu button not working/no applications on desktop

    OK, I feel really stupid.  I've been messing around with my new BB, and I did something to make sure I can't get the menu I had before come back.  At this point, I don't know even how I managed to do it, but now when I turn on my phone, there is no icons on this subject either.  I realized that if I hit the Alt + ESC keys, I can bring up a bar with a few icons.  But not all of them.   If I hit the Menu button, nothing happens.  Anyone know how I can get it back to work?

    At this point, I'm so confused, I don't know what to do! Normally, I'm pretty good with electronics, but I can't in the menu options, so I am quite confused.

    Any help would be appreciated!

    No, they're all here. Just the icons. I ended up taking it to a Verizon Wireless store and they gave me a new. They said they had never seen anything like this before.

    ... apparently I had a defective.

    Thank you very much for the help!

  • BlackBerry.UI is not defined.

    I am trying to add a personalized my widget menu item. I have included the necessary feature element in the config.xml file, but it seems that things blackberry.ui.menu * is not available for the script. Here's what I see:

    alert (typeof blackberry) reports"objects «»

    alert (typeof blackberry.ui) reports "undefined".

    alert (typeof blackberry.ui.menu) throws an exception (obviously, because blackberry.ui is not defined)

    Anyone know what is happening? The same script uses the stuff blackberry.location. * without difficulty, but a difference as possible, there is stuff of localization are "native browser" and didn't need to be activated using an element. Another thing to note is that the script is remote, i.e. it is referenced by a URL http rather than coming to archive local widget.

    Very strange... There is a base case that is covered in many of our test scenarios that everything goes...

    You are positive you have the declared following feature (it is case-sensitive):

    
    

    Another question... you this task on a web page that is coming from another domain?  If Yes, then you must add the element feature as a child of the element white lists this area.

    The origin of the page is based on the domain of the page HTML itself.  So if you have a local page in the widget and you are linking to a javascript from a remote domain, the origin of the page is always local.  Simply nest elements in the element, if you have a HTML from that domain.

    I have a blog post explaining this... I'm waiting for the blog team to post

  • output with the menu command leave I get ReferenceError: b is not defined

    When you quit Firefox using file / exit option in the menu, in this version and the previous version, I received the error message "ReferenceError: b is not defined.
    It does not Firefox to start normally the next time but I feel boring.

    Thank you

    I suspect an add-on is causing this error. Try the procedures in article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

  • blackberry.bbm.platform.users.shareContent is not defined

    I'm trying to share content via BBM with my app, but when I use the blackberry.bbm.platform.users.shareContent function, I get the following error that it has not defined:

    TypeError: 'undefined' is not a function (assessment 'blackberry.bbm.platform.users.shareContent ()')

    I checked the blackberry.bbm.platform.users object, and there only the inviteToDownload function. (check the attached screenshot)

    How is that possible? did I miss something necessary?

    My config.xml file contains:

     

    <>Ermit > bbm_connectermit >

    In addition, inviteToDownload works very well and I'm using the latest version of the SDK: BlackBerry 10 WebWorks SDK 1.0.4.11.

    shareContent is not supported on BlackBerry 10.  The BBM SP session and channels that allow a communication device are not supported in BlackBerry 10.  These are supported in BlackBerry OS 5 to 7.

  • Synchronize an unknown error: forms failed: ReferenceError: dbConnection is not defined

    I've never had success with Firefox sync and it gets really frustrating. The synchronization log appears to fail at this line:

    Sync.ErrorHandler forms of DEBUGGING failed: ReferenceError: dbConnection is not defined (resource://gre/modules/FormHistory.jsm:407:4) JS Stack trace: [email protected]:407:5 < [email protected]:274:10 < [email protected]:781:16 < [email protected]:51:5 < [email protected]:149:19 < [email protected]:919:22 < [email protected]:1518:7 < [email protected]:148:21 < [email protected]:668:5 < [email protected]:199:7 < [email protected]:149:15 < [email protected]:1295:7 < [email protected]:148:21 < [email protected]:103:16 < [email protected]:1285:12 < sync / < @service.js:1277:14 < [email protected]:77:16) < [email protected]:1265:5

    any ideas how to fix?

    Thank you.

    Hi deeptii,
    Thank you for reporting this issue. It is a problem that we saw in a version every night and has been corrected. What means the error, it is that the database is not accessible on the local computer Firefox profile folder.

    In order to check the permissions on the Firefox profile folder, you can go to:

    1. Open a new window in Firefox and click on the Firefox Menu.
    2. Click the question mark at the bottom of the menu
    3. Then click the "Troubleshooting" information and a new tab should load subject called: support
    4. From there, there is a button next to "Profile folder", this will open the directory where the profile folder. If its does not appear: profiles - where Firefox stores your bookmarks, passwords and other user data
    5. Right-click on the folder, and then click "Properties". In this menu, make sure that it is not set to 'Read only' (maybe it's a little different in Windows 10 please seek help from Microsoft, if it is no longer in this menu)
    6. Restart Firefox, the error is again started?

    Other work around is to remove this folder in the profile of: formhistory.sqlite (this file contains the content of the form, simply disconnected from the directory will create a new profile so when you restart Firefox, if there is a concern for dataloss)

    Please also post back with these results but also to copy the information that appears in the subject: support page.

    Thank you!

  • BB10: Error 1065 SkinAssets is not defined

    Try to get a very simple application of AIR working with BB10 10.0.4 AIR SDK and I get:

    ReferenceError: Error #1065: qnx.fuse.ui.skins Variable:kinAssets is not defined.
    at::ThemeWhite/createCSS() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeWhite.as:25] qnx.fuse.ui.theme
    at::ThemeWhite() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeWhite.as:20] qnx.fuse.ui.theme
    at::ThemeGlobals$/getTheme() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeGlobals.as:246] qnx.fuse.ui.theme
    to qnx.fuse.ui.theme::ThemeGlobals$/http://www.qnx.com/2009/qnx/internal:getCSS () [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\theme\ThemeGlobals.as:235]
    at qnx.fuse.ui.core::UIComponent/get [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:910] css()
    at::UIComponent/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:212] qnx.fuse.ui.core
    at::TextBase/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\TextBase.as:666] qnx.fuse.ui.text
    at::Label/init() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\Label.as:115] qnx.fuse.ui.text
    at::UIComponent() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\core\UIComponent.as:180] qnx.fuse.ui.core
    at::TextBase() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\TextBase.as:468] qnx.fuse.ui.text
    at::Label() [E:\hudson\workspace\BB10_0_04-AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\text\Label.as:107] qnx.fuse.ui.text
    at bb1() [U:\workspace460\bb1\src\bb1.as:12]

    It occurs when you create a label:

    import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
    
        import qnx.fuse.ui.text.Label;
        import qnx.fuse.ui.theme.ThemeGlobals;
    
        public class bb1 extends Sprite
        {
            private var label :Label;// = new Label();
    
            ///////////////////////////////////////////////////////////////////////////
            public function bb1()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                ThemeGlobals.currentTheme = ThemeGlobals.BLACK;
    
                this.label = new Label();
                this.label.text = 'Hello World';
                this.label.setActualSize( 200, 50 );
                this.addChild( this.label );
            }
        }
    

    The exception is thrown when you try to run it as an AIR application on the desktop.

    For BB10.04, skins residence in a native extension, so you have to add it to your project properties.

    Unfortunately, FlashBuilder requires two steps to do:

    The project must have the QNXSkins.ane added to it (preferences-> Build Path-> Native Extensions) and marked to be included in the file as well bar (preferences-> ActionScript Build packaging-> BlackBerry-> Native Extensions). For these, you need to expand the window to really see the checkbox for the DONKEY.

    Native extensions are under frameworks/libs/qnx/donkey.

    See you soon

  • BlackBerry Passport link connecting not

    Since the acquisition of my passport about 10 months ago I have been synchronize Contacts and calendar with my PC through cable almost every day, without any problem. But even if my PC still recognizes the device, she refuses to bind and gives the following error message:

    Synchronization failed

    CPreferencesManager: Configuration values for/Preferences/Account_1_65538/SyncAccountId_2 not defined in Transconfig.xml for translator RimBB

    I have not knowingly modified the settings. Would be grateful for the advice.

    What is the command line test result? Mine is successful. So, is "synchronization failed" error message always? I don't know about your question. Perhaps. The synchronization engine problem or was it corrupted Windows registry as shown above to the article.

    If the result of command line test is successful but the synchro still aren't, there is only a few last options I know;
    1. clean, uninstall and reinstall the link.
    2. system restore from your PC to the date that you could sync of the calendar.
    3. create a log file of BB link and send to BlackBerry customer support to identify the source of the problem.

  • can browse same APN is not defined?

    Hello

    If the AFN is not defined then by HttpCoonection, my application survey exception IOException: AFN is not defined. At the same time I can browse a different site through browser. How is it possible? Do I have to add more parameters for this.

    My url is

    URL + "deviceside = true";

    Thank you

    To understand your question, you have reading to do:

    Start here:

    http://supportforums.BlackBerry.com/T5/Java-development/networking-transports-II/Ta-p/446742

    and then watch this:

    http://supportforums.BlackBerry.com/T5/Java-development/different-ways-to-make-an-HTTP-or-socket-con...

    Once you've experienced all this, can you please consult your quesition and maybe ask a different way.

  • Error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object

    I'm taking pictures in my widget, but when I make the call

    blackberry.media.camera.takePicture (successCB, closedCB, errorCB);

    I got this error in the Simulator as well as in a real device: "error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object.

    Also, I included the function in the config.xml file:

    I don't know what else could be.

    Hello

    I have not a 9360 around me at the moment, but I just tried it on a 9900 7.0 running and the above code ran very well.

    On your device, could you please navigate:

    Options > device > application > search and highlight her is > press the menu key, then select change permissions > set all allow (or as high as possible) > save options and re-run your application under test.

    It is more of a longshot, but get a little creative.

    Also, you use the latest version of the SDK software (2.3.1) smartphone while packing?

    https://bdsc.webapps.BlackBerry.com/HTML5/download/SDK

    I'll try and think a little more ideas, but the above code should work on a device of 7.0. Maybe someone from the community can check on them?

    Erik Oros

    BlackBerry Development Advisor

  • called when instantiating blackberry.ui.menu.MenuItem

    I create a menu item:

    var regPush = new blackberry.ui.menu.MenuItem(false, 1, "Push Registration", openBISPushListener());
    blackberry.ui.menu.addMenuItem(regPush);
    

    But openBISPushListener() is called during this menu item instantiation. When I comment the lines menu item, the code is not called.

    Any ideas?

    The problem is that you are setting and at the same time execution of the callback function to your menuItem.

    Please see so endearing to the callback method works for you:

    var regPush = new blackberry.ui.menu.MenuItem(false, 1, "Push Registration", openBISPushListener);
    

    Note that I just removed the () on your openBISPushListener.

  • Profile FND Diagnostics lost if page is not defined

    Hello

    I saw the old thread, but I don't have the same code number.  Here's the part of my co code that seems to be lost.  This is a page of dialog Yes / No button and an error occurs when clicking on the Yes button.  If is defined profile FND Diagnostics, the error disappears.  Any help is greatly appreciated.

    TIA,

    Alka

    If (pageContext.getParameter ("YesButton")! = null)

    {

    am.invokeMethod ("applyBatch");

    HashMap cpParameters = new HashMap();

    String IdDemande = "";

    requestId = am.invokeMethod("newBatch").toString ();

    ID of the string = ' "+ IdDemande +" ";" "

    cpParameters.put (requestId, id);

    Modify the downloaded to call DCRD_OKS_MASS_UPD_VIEW_REQ to test

    String url = "" OA.jsp? akRegionCode = FNDCPREQUESTVIEWPAGE & akRegionApplicationId = 0 & REQUESTID = requestId ";"

    pageContext.setForwardURL (url

    , null //not required because we are keeping context menu

    OAWebBeanConstants.KEEP_MENU_CONTEXT

    , null //not required because we are keeping context menu

    cpParameters //pass the table hash that contains the values for all parameters

    true //retain AM

    OAWebBeanConstants.ADD_BREAD_CRUMB_YES

    OAWebBeanConstants.IGNORE_MESSAGES);

    }

    Alka,

    Please change your code as below:

    Existing:

    if (pageContext.getParameter(EVENT_PARAM).equals("applyBatch"))
    

    New:

    
    if ("applyBatch".equals(pageContext.getParameter(EVENT_PARAM)))
    

    As elsewhere, change all the conditions.

    In addition, check if control passes to processRequest(), if yes, you need to add an additional control in the processRequest() so that when the processRequest() will not run on his return from the Page of the dialog box.

    Take a look at this below for more details:

    Johny tips: OAF: OA dialogue Page works not when Diagnostics FND profile is not defined

    Let me know if you still face questions after making the suggested changes.

    See you soon

    AJ

  • &amp; quot;... line 56... referenceError: Dwscripts is not defined &amp; quot;

    Everything was fine. Last night, I was jammin along. This morning, I get this error:

    At line 56 of file "c:\programfiles\macromedia\dreamweaver8\configuration\shared\common\scripts\dwscriptsext data.js": referenceError: Dwscripts is not defined

    Now, I am unable to do anything (save, copy, paste, etc.). I searched this forum, but do not see the problem. I have to reinstall everything? I already tried the ol' system restore '. Not good.

    Help, please. All you have is appreciated.

    r

    MEPE wrote:
    > So far, I have not been able to make the solutions work. Mainly because of my own
    > time constraints this morning. A challenge I have is that I can not
    > locate the offending cache file. (C:\Documents and)
    (> Settings\\Application Data\Macromedia\Dreamweaver 8\Configuration).
    > according to the instructions.

    You should enable the option Show hidden files and folders in
    Windows. Open my computer and select Folder Options from the Tools menu.
    Click the view tab and select "Show hidden folders and files" in
    Advanced settings. You should then be able to find the Configuration
    files for Dreamweaver.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    The "import" tab appears only when the iPhone is connected to the Mac via a USB port.

    ITunes detects your iPhone when it's connected?

    If iTunes does not recognize your iPhone, iPad or iPod - Apple Support

  • Why do I get the error: error: TypeError: netscape.security.PrivilegeManager is not defined

    Whenever I open Firefox, I get the following error:
    Error: TypeError: netscape.security.PrivilegeManager is not defined

    I never had this before. Where did it come from? What it means? How can I get rid of him?
    I use Firefox 24.0 on a desktop Lenovo Vista

    Hello twowheelaj, this error is probably caused by an obsolete extension (avg toolbar may be one of them) - to verify that, please start firefox in safe mode once and see if you can reproduce this error message then. Otherwise, please try to disable your addons, until you find the good & keep this option disabled in case there is no update available for her...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

Maybe you are looking for