: How to hide menu items in blackberry?

I'm developing an application. In this application, I had created a main screen. On the main screen, I had added a button field. When I clicked on this button field to open my popup screen it will open my popup screen but it also shows menu items all that I added to my main screen in front of the screen. However, I do not want to display these menu items but do not want to open my popup screen when clicking on this button then, how do I do this?

create the button with the style CONSUME_CLICK.

Tags: BlackBerry Developers

Similar Questions

  • [ADF, JDev 12.1.3] How to hide menu items based on the logged in user

    Hallo,

    When the user logs on successfully, the applitacions led him to the main.jspx page.

    The main.jspx page has a menu bar that contains all of the available menus, submenus and menu items.

    After the connection, when the main.jspx page loads I would hide all the menus, submenus and menu items that the user is not qualified to see/use (I read the database).

    You kindly tell me which is the way the cleaner to achieve?

    Thank you

    Federico

    user10709360 wrote:

    Hello rohanwalia,

    Sorry, but I need more help

    I guess that the solution is to create a method in the AM who - reading form the database - returns a structure that indicates for each menu item should be visible or hidden.

    • How can I use the data returned by this method?
    • I call in a managed bean specifically dedicated to the management of the menu? Can I also use the already existing media bean, I created for the page?
    • What scope should have the bean?
    • Don't you think that it is better to define a 'visible' variable Boolean (initilized depending on the result of the AM method) for each menu item and how to bind the Visible property of each menu item to the variable respective in the bean in the bean?
    • Or I can loop the result of the method AM setting the Visible property of the menu items? In this case, I guess that all the menu items must be mapped into the bean by user interface variable. Am I wrong?
    • Is it not possible to write a method which, of the AM directly, hide the menus not necessary on the page (so without using a bean)?
    • In general, which are the correct always to hide menu items:
      • (1) before the page is sent to the browser (as "I can do it with PHP);
      • (2) once the page is loaded in the browser (as I can do it with JavaScript)?

    If you could give me some more detailed advice... I would be very happy.

    Thank you

    Federico

    (1) its best to make the treatment inside the method. You can return the parameters as normal java method.

    (2) Yes, you can use bean already exists in the project. But better to create a separate bean for this task of menu.

    (3) scope should be request unless you need to persist the attributes between requests.

    (4) Yes it is possible. You can define and initialize a Boolean variable with the results you get from the table based on the menu items should be made visible.

    (5) If you use the approach to point 4, then also you have to loop through the table menu items and set Boolean variables of bean. Yes you are right for the second part.

    (6) I'm not sure about this approach. How will you map it to your menu mode. It takes research.

    (7) before the page is loaded. I share with you links in above post with which you can do this.

    I hope this helps.

    Thank you

  • How - add a menu item custom application BlackBerry

    I'm working on an application that creates a custom in various standard Blackberry applications menu item.
    On the platform of v4.2.1.72 8800 2.3.0.54 everything works fine all the Blackberry PIM application that the spectacle of my menu item mail application custom.

    When I load on platform 8330 v4.3.0.124 3.1.0.71 none of the custom menu to the top and on the OS of the Pearl Flip is v4.6.0.48 4.1.0.13 only e-mail and todo/tasks application view my custom menu others do not show my menu item.

    I tried to compile my app in the various versions of the JDE, but always the same question.

    Am I missing something for the new OS?  I followed the knowledge base article "how - to add a custom BlackBerry application menu item.

    I tested it on 8800 v4.5.0.52 platform 2.7.0.66 and Mail and Memo shows no custom menu item in Contacts, calendar and ToDo my custom menu appears.

    Thank you...

    BTW do you know if I can add menu browser and retrieve the content of the web page?

    No, this is not supported.

  • How to add menu items in the log of sms and blackberry.

    I want to know is - it possible to add the SMS and phone log menu items.

    Imean to say that if I open the sms and on focusing on one of the sms log I want to show my menu item to merge in blackberry menu items... even in call log history...

    Any help is appreciated if you please give me some examples of code too I will be really grateful...

    I got I solved it by using MENUITEM_PHONE. MENUITEM_MESSAGE_LIST, MENUITEM_SMS_EDIT

  • How to hide menu on MBA bars?

    On Microsoft Windows F11 hides all menu bars

    How about Mac MBA?

    http://www.idownloadblog.com/2015/06/22/hide-menu-bar-OS-x-El-Capitan/

  • No. phones menu item smart blackBerry to enable the services of the company?

    Hello... I got my storm configuration to get work through OWA email after I got it, then we have upgraded our Exchange Server and now it requires the Services of company activated for the work given to my BB email.  When I go to Options/Advanced Options there is no menu item for "Enterprise Activation".  A colleague who has a storm showed me his Advanced Options menu and it's there.  Clues as to why I have this option or how you install?

    Thanks for any help, that all the world can offer.

    Hmm, I'm not even on a system of BES and I always show option in Advanced Options.  My suggestion is to just try to pull the battery of your phone for ~ 15 seconds and put the battery back in.  If it does not, see your BES administrator or contact your carrier for assistance.

    Start here and if this does not work, let us know and it has other suggestions, we should be able to provide.

  • How to remove menu items by default in a Mac Air application

    Hello world

    I have an Air application built in Flash Builder, which runs on Windows, as well as in Mac.

    My application has its own menu bar. In windows, it's OK.

    But in Mac above the menu bar of the application, there is a menu bar by default Mac app with four elements (application, file, Edition, Windows name), which is completely useless.

    I want to remove the menu bar of the Mac by default app.

    Help, please.

    Thanks in advance,

    Jameel

    You can remove them by using the NativeApplication.nativeApplication.menu property to access the native menu.

    import flash.desktop.NativeApplication;

    If {(NativeApplication.nativeApplication.supportsMenu)

    NativeApplication.nativeApplication.menu.removeAllItems ();

    }

    The ASDocs said this removes all menu items, but I imagine that he will allow the "App name" menu on Mac OS computers item so that the user knows which app is currently active and so it can be closed or hidden.

    NativeMenu - Adobe ActionScript® 3 (AS3) QAnywhere

    NativeApplication - Adobe ActionScript® 3 (AS3) QAnywhere

  • How to hide icons on the blackberry by program screen

    Hi all

    Could you help - is there a way to:

    -Programmatically hide the icons on the blackberry from java application screen

    -Hide program individual emails in the Inbox

    -Add custom menuitem standard menu in the display host and Manager set for it (for example some settings)?

    Thanks in advance

    Review the summary of the class field. There are applications where items can be added.

  • How we hide the items (like the camera, composition)?

    Hello

    I created a camera programmatically using AEGP_CompSuite6::AEGP_CreateCameraInComp () in my effect plugin type. I won't be showing this camera user. So, I want to hide the device appear on the time table. I have sought it in the SDK documentation, but I have nothing. can you please tell me is it possible to hide the camera in AE? If so, how can we do it?

    It's all theory.

    never tried.

    Use AEGP_GetNewStreamRefForLayer for the camera layer.

    now that you have a ref to flow, you could use AEGP_SetDynamicStreamFlag with AEGP_DynStreamFlag_HIDDEN.

    He planned to work on the effect params. Maybe it will do the same for your camera layer.

    consider not doing as an invisible layer.

    It can be accidentally selected and deleted without the user noticing.

    other effects such as 'special' add items to the model, but retains the illustrating and locked.

    It is perhaps the best way to go.

  • Send the menu item for OS6

    Hey, help me please...

    I sendmenu sourcecode of blackberry Web site, I try to my BB tour 2 (9650) with operating system version 6 does not work...

    import net.rim.blackberry.api.sendmenu.*;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    import org.json.me.JSONException;
    import org.json.me.JSONObject;
    
    public class SendMenuAPIDemo extends UiApplication
    {
        public static void main(String[] args)
        {
            SendMenuAPIDemo theApp = new SendMenuAPIDemo();
            theApp.enterEventDispatcher();
        }
    
        public SendMenuAPIDemo()
        {
            pushScreen(new SendCommandDemoScreen());
        }
    }
    
    class SendCommandDemoScreen extends MainScreen
    {
    
    //In the screen class, declare instance variables to represent
    //an edit field and the text that the user types in this field.
        private EditField _textToSend;
        private String _textString;
    
        public SendCommandDemoScreen()
        {
            setTitle("Send Menu API Demo");
    
    //In the screen constructor, create a new EditField object to represent
    //the field that the user types in.
            _textToSend = new EditField("Send: ", "Type the text to send here",
                                        255, Field.FIELD_HCENTER);
    
    //To specify the appearance of the EditField object, invoke setBorder(),
    //setPadding(), and setMargin(). In this example, a bevel border is created
    //for the EditField object, and a padding area and margin area are added.
            _textToSend.setBorder(BorderFactory.createBevelBorder(new XYEdges(3, 3, 3, 3)));
            _textToSend.setPadding(8, 8, 8, 8);
            _textToSend.setMargin(15, 15, 15, 15);
    
    //Add the EditField object to the screen.
            add(_textToSend);
        }
    
    //Override makeMenu() of the MainScreen class.
        protected void makeMenu(Menu menu, int instance)
        {
    
    //Invoke super.makeMenu() to add the default menu items for BlackBerry
    //device applications to the menu.
            super.makeMenu(menu, instance);
    
    //Invoke getText() of the EditField class to retrieve the text that
    //the user typed in the edit field.
            _textString = _textToSend.getText();
    
    //Create a new JSONObject object to represent the context
    //information for the Send menu.
            JSONObject context = new JSONObject();
    
    //In a try/catch block, invoke put() of the JSONObject object to populate
    //the context information using key-value pairs. Use the constants that
    //are defined in the SendCommandContextKeys class as keys. Catch a
    //JSONException, which indicates that the specified key is null.
            try
            {
                context.put(SendCommandContextKeys.TEXT, _textString);
                context.put(SendCommandContextKeys.SUBJECT, "Your Text");
            }
            catch (JSONException e)
            {
                System.out.println(e.toString());
            }
    
    //Create an array of SendCommand objects to represent the Send menu commands
    //that you want to include in the Send menu. Invoke
    //SendCommandRepository.getInstance() to retrieve the singleton instance of the
    //SendCommandRepository. Invoke get() and specify as parameters the type of content
    //to send, the context information for the content, and a boolean value
    //that indicates whether all of the commands should be retrieved
    //regardless of whether their associated applications can be opened.
            SendCommand[] sendCommands = SendCommandRepository.getInstance().get(
                                             SendCommand.TYPE_TEXT, context, false);
    
    //Determine whether the array of SendCommand objects is not null and
    //contains commands, and if so, create a new SendCommandMenu object to represent
    //these commands and add it to the menu.
            if (sendCommands != null && sendCommands.length > 0)
            {
                menu.add(new SendCommandMenu(sendCommands, 0, 0));
            }
        }
    }
    

    Help me please, when I opened there is always a view from menu error: Module 'net_rim_bbapi_sendmenu' not found.

    API said "since 7.0', you will not be able to use the OS 6.

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

  • How to hide the menu item 'bookmarks '?

    Firefox 5.0.1
    At the menu bar: 'File', 'Edit', 'View', 'History', "Bookmarks", etc.
    How to hide the element of "bookmarks"?
    I have the add-on PLAINOLDFAVORITES installed and
    I forgot how with v3.6.18.

    Thank you very much

    Click the Firefox button and click on Add-ons -> Add-ons Manager, tab opens-> go to Control Panel Extensions-> select your add-on "Favorite PlainOld" , click Options

    Check and tell if its working.

  • How to hide the Menu item in the Oracle Forms Menu bar.

    Hi all

    I have a requriement wherein I have to hide these oracle forms menu bar menu items whose rights are not available with the user.

    I already have enable / disable the option on the order of the day, but required to not display these items that are users do not allow access to users.

    Is it possible to do this task? Please help and guide me.

    Thank you

    Atif Zafar

    Perhaps a typing mistake?

    Your menu is named MAIN_MENU_MENU, in your code, you use only MAIN_MENU.

  • I want to change the button menu items menu blackberry

    In my blackberry app I want to erase the current option to menu point (Swith application, close, Select) and add new menu button menu options.

    I tried the below code but nothing is happening for me.

    if (blackberry.ui.menu.getMenuItems().length 0) {
          blackberry.ui.menu.clearMenuItems();
        }
        var item = new blackberry.ui.menu.MenuItem(false, 1, "Click Me", customMenuItemClick);
        blackberry.ui.menu.addMenuItem(item);
    
        function customMenuItemClick() {
          alert("user just clicked me");
        }
    

    I inserted ? in the config.xml file
    but no use.

    How to change the menu items

    I would consider removing those as bad practice of the user interface. They appear (as I know) in all the menus in all applications.

    If you use the command combined with separators feature, I think you will find that it is ok?

    I don't know how to remove these default items (did not seek either ;-)))

  • How to add a global menu item?

    Hi all

    I would like to know how to add a menu item for all the menus of the blackberry device. Just as the screen mucher application, you will find the option "Display strange".

    I googled a lot and has not found an appropriate answer.

    Thanks in advance

    Hello

    Do you mean menu added to the device. Check these api
    ApplicationMenuItemRepository and ApplicationMenuItem

    Kind regards
    Priyanka

Maybe you are looking for