menu item from openes when the button is clicked

Hi friends,

My monitor have buttons and menu items. When I click on the button using wheel, click the fucton button works, but it will also open the menu items.

How can I block the menu item when I press the button.

Thanks in advance...

use 'ButtonField.CONSUME_CLICK '.

Tags: BlackBerry Developers

Similar Questions

  • How can I get audio to not start when the button is clicked?

    I am new to adding audio to slides, buttons, click boxes.  Import the recorded voice on the overall slide of files sounds easy enough.  However, there are several buttons that display a legend I want audio to not start when the button is clicked.  I added audio just for this button, but it starts when the slide begins.

    How can I get audio to not start when the button is clicked?

    Hello

    Audio playback when the assigned object with the audio appears. That's why hear you when the button appears.

    Try to assign audio instead to the object that is displayed when you click the button. Perhaps the legend.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Call a rowDisclosureEvent from a tree Table when the button is clicked.

    Hi all

    I use Jdeveloper 11.2.5.

    I want to know how can I call the rowDisclosureEvent of a TreeTable at the click of a button.

    Code:

    {} public void collpaseAll (RowDisclosureEvent event)
    depth int = treeTable.getDepth ();
    if(Depth>0) {}
    return;
    }
    RowKeySet discloseRowKeySet = treeTable.getDisclosedRowKeys ();
    RowKeySet addedRowSet = event.getAddedSet ();
    Iterator addedRowKeyIter = addedRowSet.iterator ();
    {if (addedRowKeyIter.hasNext ())}
    discloseRowKeySet.clear ();
    Object firstKey = addedRowKeyIter.next ();
    discloseRowKeySet.add (firstKey);
    treeTable.setSelectedRowKeys (addedRowSet);
    treeTable.setRowKey (firstKey);
    AdfFacesContext adfFacesContext = null;
    adfFacesContext = AdfFacesContext.getCurrentInstance ();
    adfFacesContext.addPartialTarget (treeTable.getParent ());
    }
    }

    {} public void collapse (ActionEvent event)
    Add the code in the event here...

    }

    What should go after add code here event so that it can call the above method.

    Why down? If you want to just close all open nodes, you can do it inside the actionListener to the button.

        public void collapseTreeListener(ActionEvent actionEvent)
        {
            RowKeySet lDisclosedRowKeys = treeTable.getDisclosedRowKeys();
            lDisclosedRowKeys.removeAll();
            treeTable.setDisclosedRowKeys(lDisclosedRowKeys);
            // PPR refresh a jsf component
            AdfFacesContext.getCurrentInstance().addPartialTarget(treeTable);
        }
    

    Timo

  • All fields are empty when the button is clicked

    Hello

    I have the result and 2 window search criteria. all the fields in the search window are not visible when the user enters some search criteria and click on the button Search opens the window of results, the opening of the result window, I want to say is not no button text box are visible in the search window, the window is empty. Please can someone tell what is wrong, what I have to change any property of window or controls.

    Thank you

    Vish

    Hello

    Oh no problem, you must use 1 table of main content & display the search result in the stacked with the next consideration...

    Please note on canvases stacked that you have the following properties of the view-port, which explain the key solution do not display the form elements in your case.

    1- T it position from view of the piled in canvas (Viewport) on the table of contents of the current window. (Display X, Y Position window)

    a.Viewport X, position Y on the window:

    Specifies the coordinates x, y to the left corner of the canvas stack relative to the top left of the display of the contents of the current window.

    -This means that the position of the top left of your canvas stacked on top of the canvas content.

    b.Viewport WIDTH, HEIGHT

    Specifies the width and height of the display for a stacked canvas.

    -This means that the actual size and the position of the view that defines the part of the drawing area is displayed in the window running.

    2- T it position from view of the piled in canvas (Viewport) on stacked canvas itself. (Display X, Y Position on canvas window)

    Viewport X, position Y on canvas

    Specifies the location of the top left corner of the view from the upper left corner of the canvas. The size and location of the window define the view; in other words, the part of the canvas which is currently visible in the window which is attributed the canvas.

    This parameter specifies what part of your willingness to stacked canvas the viewport (visibility) will cover.

    These properties help you make your most visible form elements on your canvas without using the scroll bar.

    You should try for yourself & recognize more clearly.

    Amatu Allah

  • How to perform an action when the button is clicked reply all in BB email?

    I find the solution on below scenario, any help appriciated.

    User open a receipt email and click the 'reply to all' "."

    It is possible to perform any action on the button 'reply to all '?

    Thank you

    You can not interact with native applications except for adding your own menu entry (entries).

  • ID of passage with its values in the fields in form when the button is clicked.

    Tried to pass the value according to the button clicked with his id in to form.

    I am able to get the id in the right place as you can see in the Image below, but not able to pass all the different values of it.

    Global function:

    function get_id (id)

    { var a = parseInt (id)

    Apex. Item (P73_SHIP_ADDRESS_ID). SetValue (a);

    }


    Static page source:

    declare

    Id1 number (10,0);

    Start

    for rec in (select * from OMS_SHIPPING_ADDRESS where USER_ID =: P1_USER_ID)

    loop

    Id1: = rec. SHIP_ADDRESS_ID;

    sys. HTP.p ("< br > < div >");

    sys. HTP.p ('< a >' | sys.) HTF.escape_sc (CRE. TYPE) | "' < /a > < br / >"

    || sys. HTF.escape_sc (CRE. ADDRESS_LINE1)

    || ' , '

    || sys. HTF.escape_sc (CRE. ADDRESS_LINE2)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. CITY)

    ||  '-'

    || sys. HTF.escape_sc (CRE. ZIP_CODE)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. STATE)

    || "' < br / >"

    || sys. HTF.escape_sc (CRE. COUNTRY)

    || ' < br / > < input type = "button" value = "sΘlectionner" onclick = "get_id (id)" id ="" | recomm. SHIP_ADDRESS_ID | ' ' ' > '

    );

    sys. HTP.p ("< / div > '");

    end loop;

    end;

    Below the Image if I click select can pass id to send the address id but able to pass the address line1.line2, city etc...

    I tried to move to the global function also does not work! If someone could guide me!

    123.JPG143.JPG

    Hello

    If you have already passed the ID, then why don't you create a dynamic action on change of SHIP_ADDRESS_ID and load the details of database and fill in other areas.

    In this way the use of ID is understandable.

    --

    Sunil Bhatia

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • Display the form when the button is clicked

    Hello, I am using JDeveloper 11.1.2.3.0
    I have a button and a form on my jsf page. I want the form to display when I click the button (to be seen). How is it possible in the ADF?
    Thank you

    Take a look at http://tompeez.wordpress.com/2013/03/25/creating-variables-and-attribute-bindings-to-store-values-temporarily-in-the-pagedef/

    Timo

  • CLEAR the VALUE of INPUT TEXT when the button is clicked

    Hi all

    I have a box of 2 inputText in my page in which the user enters a value, click on a button on this box. Now, what I want is to erase the other inputbox, during the click on the button against the inputBox in which the user entered value.
    I did partialTriggers of two boxes to the buttons and buttons are partial shipment.

    Now at the bean (session scope), I write something like firstInputBox.setValue(null);/firstInputBox.setValue("");/firstInputBox.setValue(false). When you click on buttons.

    But still my boxes are not erasing.

    Why can't he be?

    action listener to the button write-

    firstInputBox.resetValue();
    firstInputBox.setValue("");//if it takes a string input
    AdfFacesContext.getCurrentInstance().addPartialTarget(firstInputText);//always better to do programmatic PPR when there is some logic already on click of button .. do for declaritive ppr when ur whole soln. is declaritive
    
  • unexpected behavior when the button is clicked - &amp; quot; playhead &amp; quot; jumps to wrong frame

    I'm working on a flash site and I'm running on an actionscript issue that has me a little deadlock.

    The timeline main .fla is long of 42 images. Images 1-23 are the preloader, each frame between the 24-31 images contains one of the sections of the site, and frames 36-42 contain paragraphs of one of the main sections. 32-35 are empty frames just to help me keep things visually separated while I work on this project.

    I have a subnavigation for this paragraph of installation in frames 36-42. For each of the buttons in this sub navigation, I have attached a very simple actionscript that links to other pages of the paragraph. I used actionscript as I've mentioned below, where 'web' is in this case, the name of the image I'm aiming:
    on (release) {}
    gotoAndPlay ("web");
    }

    When I click on a link to take me to the last image, that is be named "specevents" (special events), it takes me to which frame correctly. If I click on the "specevents" button once again within this framework, I picked the preloader screen. This type of jump also happens in some of the other secondary navigation buttons, that is, by clicking on a link for a framework which I am already in will take me to a quite unexpected setting (always the same framework for each button, however).

    In fact, looking a bit more closely, I find whenever I click on one of the sub - nav links, I have to move an image. As part of the "specevents" is the last image, it brings back me to the first frame of the movie.

    It's all a bit strange for me, because apparently, I used the same method on the main navigation buttons, and they do not have something unexpected when you click it.

    FYI - the page in question here, can be found at: http://gravitygroup.com/testflashy/ the 'our work' section sub navigation, that's what I'm looking at.

    Any ideas? Thank you!

    AHA! figured it out. The problem is that I got my sub - nav buttons grouped together so I could move around as a unit. I have them removed, and everything works now!

    Thank you for taking the time to help!

  • ADF change active tab when the button is clicked

    This is one of those questions that expose me for beginners I, but here goes.

    I went through the help files and the forums, and I can't find what I think is a relatively simple mechanism: change the active tab (revealed) with the click of a button or menu text link.

    For example: I have a navigation bar on the left of the page and a set of tabs in the Center. A tab is active. I want to be able to click a button in the navigation area and have the visible tab changed to tab B, as if I had clicked on the tab B itself. How to activate a button or link click in the navigation area to change the visible tab? I only need that in some specific cases and do not want to create a complex structure backend for a pair of buttons.

    If you know a way to do this, I'm all ears. Thank you.

    You create a bean of support that will contain the code for the event click on the link.
    In this code, you set the property disclosed in the showDetailItem you want to make active to true and then change the tab other false.

    An intro base to work with the support of the beans is here:
    http://blogs.Oracle.com/Shay/2010/03/working_with_backing_beans_in.html

  • Make objects appear on stage only when the button is clicked?

    In CS5, I want to have a frame with buttons that when clicked, reveal the different graphic symbols or clips video (I don't know what to use?). Symbols will be revealing text and graphic information and could fade when you click on, however will not move or do something else.

    1. is it better to do these graphcis and text in video clips or graphics?

    2. how they hide on the scene up to what a user clicks on a button to reveal?

    3. with the help of Code snippets, which option will do this job?

    Thank you!!!

    to turn on/off:

    yourbutton.addEventListener (MouseEvent.CLICK, f);

    yourmovieclip. Visible = false;

    function f(e:MouseEvent):void {}

    yourmovieclip.visible =! yourmovieclip.visible;

    }

  • Menu opens when trackball button ' is it fair?

    Hello guys '

    I did several menus for my application. It's my source code to make the menu:

    private class SimpleScreen extends MainScreen {
    
          ....
    
          public SimpleScreen() {
             ....
          }
    
          private MenuItem _menu1 = new MenuItem("Menu 1", 100000,10) {
                public void run()
                {
                       ...
                    }
          };
    
          private MenuItem _menu2 = new MenuItem("Menu 2", 200000,10) {
                public void run()
                {
                       ...
                    }
          };
    
          protected void makeMenu( Menu menu, int instance ) {
                   menu.add(_menu1);
                   menu.add(_menu2);
                   super.makeMenu(menu, instance);
          }
    }
    

    Then I run the application, I saw the menu items when to push the button on BlackBerry. It's OK, no problem.

    And while I support button trackball (I'm trying to say pull-out button on center of BB.), open the menu items.

    Why the menu is when press of trackball? He works right? I want to do only when press the BlackBerry button.

    I use the BlackBerry JDE 4.2.1 Simulator (BB 8800).

    TNX guys

    The menu is supposed to open if the click wheel/wheel ball is not consummated. If you consume the click trackball by substituting trackwheelClick() and returns the value true, the menu will not open. You'll probably want to first call super.trackwheelClick (), but always return true manually.

  • Laptop Dell Studio 1555 w / Vista does not wake from sleep when the lid is open.

    I have a laptop Dell Studio 1555 with Vista Premium 64-bit. Until last night, the laptop would run mode standby when I closed the lid and woke up when I opened the cover later. Yesterday I was downloading photos from a Canon camera via USB. I close the lid when I did. When I went to open the cover later the laptop screen remained in black and white. The power button is lit, but the only way I can get to meet is to hold the power button until it turns off completely, and then restart the laptop. A difference when the lid is closed, I think the power button will blink and turn off slowly while he was really in sleep. He remains on all the time now when the lid is closed. I tried to go into power management and put the laptop from sliding when the lid is closed, but has not made a difference.

    Run the system restore and choose a restore point created just before the problem occurred. Steve Winograd, MS - MVP (Windows desktop experience)

  • DHTML menu opens behind the buttons of model

    My DHTML menu opens behind the buttons of model. Here is a little demo of the problem:

    http://Apex.Oracle.com/pls/Apex/f?p=37796:6

    Move your mouse over "Menu1", which is just at the top left of the produce area.
    The menu opens, but going behind the Cancel button.

    The list template is a couple of & lt; UL & gt; and & lt; Li & gt; Tags with the following CSS:
    #nav, #nav ul { /* all lists */
         padding: 0;
         margin: 0;
         list-style: none;
         line-height: 1;
    }
    
    #nav a {
         display: block;
         color:#FFFFFF;
         font-weight:bold;
         text-decoration:none;
         font-size:12px;
         padding-top:4px;
         padding-bottom:4px;
         padding-left:10px;
         padding-right:10px;
    }
    
    
    #nav_sub {border-left:1px solid #A7ABB0;
              border-right:1px solid #A7ABB0;
              border-top:0px solid #A7ABB0;
              border-bottom:1px solid #A7ABB0;
              background: #2E3033;
                font-weight:bold;
              color:#FFFFFF;
              width:20em;}
    
    #nav_sub a{color:#FFFFFF;
               font-weight:normal;
              }
    #nav_sub a:hover{color:#FFFFFF;}
    
    #nav a:hover {background-color:#FF0000;}
    
    #nav li { /* all list items */
         float: left;
          /* width needed or else Opera goes nuts */
    }
    
    #nav li ul { /* second-level lists */
         position: absolute;
            width: 20em;
         left: -999em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
    }
    
    #nav li:hover ul, #nav li.sfhover ul { /* lists nested under hovered list items */
         left: auto;
    
    }
    How can I fix?

    Thanks, Rene

    Add CSS 'z-index' property in the menu that has a value greater than that of the button.

    The following seems to work on your page

    #nav, #nav ul {
    line-height:1;
    list-style:none outside none;
    margin:0;
    padding:0;
    z-index:2;
    }
    

Maybe you are looking for