Implementing a drop down menu.

Hi, I am trying to create a drop down menu on my jsp page which will change a GIF that I send back in the servlet response. Right now I just call a function that encodes the GIF and displays it through the output stream of the servlet response, but I am looking to make a drop down box that will start with the output of an initial graph with the menu below it, and then when the user selects another option it updates the output with the new graph. And the user can continually select the different options.

Either way would actually work great. It is simply a matter of having one variable and giving the user the option to change it between a few preset options. I think it would be better to generate the graph with each request because it would make the initial load time of the page go down, however if it is much easier to generate them all at the beginning and then swap I would be happy to do that. I have another jsp page that I can call that can take the variable and it will spit out the correct graph, but I don't know how to access it correcty from the other jsp page and I don't know how to make the choicebox work right either. I appreciate the help.

Similar Messages

  • Displaying drop down menu lists on :hover

    I'm currently trying to implement a drop down menu into my website. My site is at http://www.derektoigo.com/assets/livesites/deploy/index.html (CSS - http://www.derektoigo.com/assets/livesites/deploy/css/style.css )
    I've been working with CSS for a while and can employ mosts techniques, but this is my first time attempting to implement a drop down menu. The main reason I'm here is because I'm looking to better understand why my menu won't display at all and how to overlay these lists over other positioned objects on the page. I'd like to have my menu display horizontally in the black bar on the top of the page and have the ul's in the li's (drop downs) display when I hover over a menu link with some margin (about 30px) to the right of each link. Additionally I find that when I hover my mouse over a link unless both it and its drop down lists have a fixed width, the menu item will "jump" to the side; if possible instead I'd be interested in using flexible width for each menu item and just keeping the drop down lists set to a fixed width, but I don't know how to employ this without the margins being messed up. I'm also concerned about the slider region I implemented being pushed down as a result of the menu not being in the header bar.
    I know this is kinda vague but to be honest I'm really not sure what to explain than otherwise just showing it to you, so if anyone can show me what I'm (not) doing in my CSS that should be different it would be really appreciated. Thanks so much.

    I don't see any menus on your index page.
    Maybe this will help get you started.  View source in browser to see how the code comes together.
    http://alt-web.com/DEMOS/CSS2-Horiz-Drop-Menu.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to export drop down menu to DW??

    Hi all,
    I am have just created a drop down menu in Fireworks and
    wanted to export it to my website to update the menu.
    Now, I have saved the button files in my rootfolder. When I
    go there from DW/ Insert Image objects/ rollover button (its a
    rollover), I see the following files that I created from Fireworks:
    registration-nor.gif
    then I have a whole lot of
    registration-over_f6.gif
    (corresponding to the amount of frames I have in my roll over
    button)
    I also got
    mm_css_menu.js
    and
    registration-over.htm
    and
    registration-over.css
    Now, the above is a whole bunch of different files, and I
    cant seem to figure out how to put them in the right place or
    swhich file to choose for where, in order to get my drop down menu
    to work>
    Please help me, and tips would be highly appreciated!
    Cheers!
    Text
    Text
    Text

    You really want help? Don't use these menus. They are pretty
    poorly
    implemented and will be a bear to maintain. There are much
    better ways -
    some free and some commercial:
    Check the uberlink and MacFly tutorials at PVII
    http://www.projectseven.com/)
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/)
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp)
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Horst1881" <[email protected]> wrote in
    message
    news:ek1242$s6p$[email protected]..
    > Hi all,
    > I am have just created a drop down menu in Fireworks and
    wanted to export
    > it
    > to my website to update the menu.
    >
    > Now, I have saved the button files in my rootfolder.
    When I go there from
    > DW/
    > Insert Image objects/ rollover button (its a rollover),
    I see the
    > following
    > files that I created from Fireworks:
    >
    > registration-nor.gif
    > then I have a whole lot of
    > registration-over_f6.gif
    > (corresponding to the amount of frames I have in my roll
    over button)
    >
    > I also got
    > mm_css_menu.js
    >
    > and
    > registration-over.htm
    >
    > and
    > registration-over.css
    >
    > Now, the above is a whole bunch of different files, and
    I cant seem to
    > figure
    > out how to put them in the right place or swhich file to
    choose for where,
    > in
    > order to get my drop down menu to work>
    >
    > Please help me, and tips would be highly appreciated!
    >
    > Cheers!
    >
    >
    >
    Text
    Text
    Text
    >

  • How to create a button with the drop-down menu?

    I want to create a button with the drop-down menu, which is like the 'back' on the tollbar in IE. I heard JPopupMenu can reach the certain result, but the button hadn't a down arrow. Who can help me?

    i have made something like this :
    //======================================================================
    package com.ju.guiutils
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import javax.swing.plaf.basic.BasicComboBoxUI;
    * @version 1.0 14/04/02
    * @author Syed Arshad Ali <br> [email protected]<br>
    * <B>Usage : </B> ButtonsCombo basically performs function button + JComboBox, if we have different options for
    * <BR>same button then we can use this ButtonsCombo.
    *<BR> By the way there is no button at all in <I>ButtonsCombo</I>
    public class ButtonsCombo extends JComboBox {
    //===================================================================================
    * Create ButtonsCombo with default combobox model
    public ButtonsCombo () {
    super ();
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that takes it's items from an existing ComboBoxModel.
    public ButtonsCombo ( ComboBoxModel model ) {
    super ( model );
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that contains the elements in the specified array.
    public ButtonsCombo ( Object [] items ) {
    super ( items );
    init ();
    //===================================================================================
    * Creates a ButtonsCombo that contains the elements in the specified Vector.
    public ButtonsCombo ( Vector items ) {
    super ( items );
    init ();
    //===================================================================================
    private void init () {
    setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
    setRenderer ( new ComboRenderer() );
    setUI ( new ComboUI() );
    addMouseListener ( new ComboMouseListener() );
    //===================================================================================
    * Set items for ButtonsCombo in the specified array
    public void setItems ( Object [] items ) {
    setModel ( new DefaultComboBoxModel( items ) );
    //```````````````````````````````````````````````````````````````````````````````````
    * Set items for ButtonsCombo in the specified Vector
    public void setItems ( Vector items ) {
    setModel ( new DefaultComboBoxModel( items ) );
    //```````````````````````````````````````````````````````````````````````````````````
    * Get current items in a array
    public Object [] getItemsArray () {
    ComboBoxModel model = this.getModel ();
    if ( model != null ) {
    int size = model.getSize ();
    if ( size > 0 ) {
    Object [] items = new Object[ size ];
    for ( int i = 0; i < size; i++ ) {
    items[ i ] = model.getElementAt ( i );
    return items;
    return null;
    //```````````````````````````````````````````````````````````````````````````````````
    * Get current items in a Vector
    public Vector getItemsVector () {
    ComboBoxModel model = this.getModel ();
    if ( model != null ) {
    int size = model.getSize ();
    if ( size > 0 ) {
    Vector itemsVec = new Vector();
    for ( int i = 0; i < size; i++ ) {
    itemsVec.addElement ( model.getElementAt ( i ) );
    return itemsVec;
    return null;
    //===================================================================================
    class ComboMouseListener extends MouseAdapter {
    public void mouseClicked ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    public void mousePressed ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.LOWERED ) );
    public void mouseReleased ( MouseEvent me ) {
    ButtonsCombo.this.hidePopup ();
    ButtonsCombo.this.setBorder ( BorderFactory.createBevelBorder ( BevelBorder.RAISED ) );
    //===================================================================================
    class ComboRenderer extends JLabel implements ListCellRenderer {
    //````````````````````````````````````````````````
    public ComboRenderer () {
    setOpaque ( true );
    //````````````````````````````````````````````````
    public Component getListCellRendererComponent ( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus ) {
    setBackground ( isSelected ? Color.cyan : Color.white );
    setForeground ( isSelected ? Color.red : Color.black );
    setText ( ( String )value );
    return this;
    //````````````````````````````````````````````````
    //===================================================================================
    // We have to use this class, otherwise we cannot stop JComboBox's popup to go down
    class ComboUI extends BasicComboBoxUI {
    public JButton createArrowButton () throws NullPointerException {
    try {
    URL url = getClass ().getResource ( "/images/comboarrow.gif" );
    JButton b = new JButton( new ImageIcon( url ) );
    b.addActionListener ( new ActionListener() {
    public void actionPerformed ( ActionEvent ae ) {
    return b;
    } catch ( NullPointerException npe ) {
    throw new NullPointerException( "/images/comboarrow.gif not found or /images folder not in classpath" );
    catch ( Exception e ) {
    e.printStackTrace ();
    return null;
    //======================================================================
    you can cutomize this according to your requirement , okie ;)

  • How do I find the drop down menu on Safari?

    I'm a total novice so apologies right now.  I've only had my Mac for a couple of weeks and already I can't sign into ebay which (on my old pc) meant I had to clear my cache.  I've searched and seen that I have to use the drop down menu but er, I have no idea what that is, where I can find it or how.   Many thanks in advance!

    Like I said, apologies!   Obviously, I didn't make myself clear at all!  Bodycalming, I can confirm that it isn't always possible to successfully sign into ebay.  Especially if you need to clear your cookies.
    Thank you Carolyn, I actually laughed when I read your reply and I'm sorry to have wasted your time.  I've been on ebay since 2003 so I know how to sign in there, I was just being bounced back to the sign in page each time I tried.  As I said, I knew how to deal with it on my old pc but was at a loss on my shiny new Mac. 
    shdr2thewheel, thank you for those links, I've had a quick look and they seem really useful.  I've already implemented a few changes!  I found the drop down menu now and have cleared my cookies and it seems to be working just fine.
    Thank you!

  • Input Masks and Single Choice Fields (drop down menu) Suggestions

    Here's a few suggestions - I hope this is the right place to post these...
    1. I would like to suggest a pre-filled state single choice field (drop down menu) to be used to get address information.  Or better yet a way to import a csv file to fill the preset fields for an option box.
    2. Input masks that force users to enter the data in the format you prefer.  (000) 000-0000
    3. Ability to enable or disable options depending on other choices.
    4. Option for a list of numbers say 1 thru 100 and as people pick a registration (car number in my case) that choice cannot be picked again by another user for that form.  Load values from a table that can be picked several times or only once could work in both my suggestions.
    Thank You.

    Hello there,
    Thanks for these thoughts! They're all really good (and welcome) suggestions for additions to the FormsCentral service. As you might imagine, we're busily working back here to implement new features; we have big plans for FormsCentral. For these suggestions in particular, I'll do two things:
    1. Send these suggestions to the product team and get them added to the to-do list!
    2. Move the whole thread here into the FormsCentral Ideas sub-forum. That way, your suggestions will be noted as such and well-documented on our end.
    Thanks for the great ideas; let us know if you have any more feedback for us!
    Best regards,
    Rebecca
    Acrobat Services Community Manager

  • Loading data in a drop down menu using jsp

    hello everyone...
    I'm very new to JSP programming....i'm facing a problem regarding loading the data in a drop down menu at the button click.....
    what i'm doing is...i'v taken a button and at the button click the data from "Sql Server 2000" shd load in a drop down menu....here's the code which i think will make my point clear....
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <%
              Connection con=null;
              ResultSet rs=null;
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   con=DriverManager.getConnection("jdbc:odbc:p_portal");
                   Statement stat=con.createStatement();
                   String sql="select * from message_box where name='anindo'";
                   rs=stat.executeQuery(sql);
                   %>
    <script language="javascript">
    function check()
         var show=document.getElementById("mydivtag");
         show.innerHTML = "<label><select name=select><% while(rs.next()){%><option><%= rs.getString(1) %></option><option><%= rs.getString(2) %></option><option><%= rs.getString(3).substring(0,10) %></option></select></label><%}}catch(Exception ex){out.print("Exception is:- "+ex);}%>";
    </script>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
      <label></label>
      <p>       
        <input type="submit" name="Submit" value="Submit" onclick="check()" />
           </p>
      <p>       
       </p>
      <div id="mydivtag" ></div>
      <p> </p>
    </form>
    </body>
    </html>

    yep Ajax is d right way 2 do so.
    So can use DWR(ajax tech.) for dis/
    To implement dis dere r simple steps u hav 2 follow
    1. entry for <dwr> tag in web.xml
    2. entry for <onverter>in web.xml
    3. In jsp u write
    <script type="text/javascript" src="<%=appName%>/dwr/engine.js"></script>
    <script type="text/javascript" src="<%=appName%>/dwr/util.js"></script>
    <script type="text/javascript"src="<%=appName%>/dwr/interface/ClassService.js"></script>
    were ClassService is ur class whose method u want 2 call.
    4.
    In jsp under <script> u can simply write
    ClassService.Methodname(param1,param2,....,CallBackFunction);
    5.CallBackFunction(data)
    /// do wt u want
    For more details u can find it on google.

  • Show/hide fields when selecting an option from a drop-down menu.

    Hello Gurus!
    I have a question about creating a Java Script withing Acrobat pro.  This is what i would like to do: I created a drop-down menu with several selection entries.  Upon the customer making one of the selection entries, i would like for the correct fields that i created to become visible and all other fields to hide.  Is this even possible to do?  The reasoning behind this is because we have a form that customers have to generate in order to request access to certain financial accounts; we have over 20 different types of accounts and for each instance the customer has to fill out the same form.  By creating a drop down menu, i can use the same form by just changing the drop-down selection and clicking on the designated fields for that selection.  At this time i have over 20 different forms that poing to 20 different account requests and i would hate to send the form 20 different times to one person.  The reason i can not add all fields desired for all accounts is due to the fact that the form would be filled with hundreds of checkmarks and instructions thus making the process too tideous for the customer.  Hope you guys can help out.
    ~Vader

    The good news is, it can be done (and it has been done).
    There are a few things to be aware of, however.
    The most important is that the form must be planned well, which means that you must think carefully about your logic and even more so about your field naming (hierarchical field names are your friend). One fundamental issue, you have to be aware of, is that this form no longer will be a "standard form". The consequence of this is that you may have to be aware that you might get into trouble when you have to prove that your user filled out that particular standard form (talk to your compliance and forms management people about that).
    You also may have to decide whether the form should be usable in Reader. And, if so, how much you want to spend on the right to do so. You will see below why…
    There are actually two approaches for dynamically showing/hiding parts of a form. If your form can be separated between a fixed first page (where you also have the account type selection), and a variable part (depending on the selection), you could use Templates, which you spawn according to the selection, and delete pages when you change the selection. This approach is very easy to implement, but requires Reader Extensions Server to allow it to work in Reader; Acrobat Pro's extended rights are not sufficient for that.
    The other approach is showing/hiding fields. If you did your homework well, it would be very easy to first hide all subsequent fields, and then show the ones you need in two lines of code. This approach does not require extended rights for Reader at all, as long as your forms will always have the same number of pages, for each of your account types. This approach also works for the cases where the differences between the individual forms are very small. It does also work for showing/hiding bigger chunks of the form. In that case, you might create the "background" separately, and then put it as an icon into a button field which you will show/hide together with the carefully placed on top of it active fill-out fields.
    There is a third possibility, which Adobe Propaganda probably would suggest, and that woudl be subforms in LiveCycle Designer. The consequence is, however, that you won't have PDF forms, but proprietary XFA forms instead. And you may have more developing and maintenance work than with the other approaches.
    Back to your original question: you could use a Keystroke script evaluating event.changeEx of the combo box field. Depending on that, you would run your action to set up the according form part. The other way to do it would be evaluating event.value in the onBlur event. The latter would have the advantage that the selection has been made, and you get a bit more time to set up the form (this may in fact be an issue, particularly with Acrobat 9 and 10, which may take their time to show/hide fields).
    Another possibility instead of a drop down (combo box field) would be a popup, where you would have a button to press, and the list of selections pops up. This second method uses app.popUpMenuEx().
    Hope this can help.
    Max Wyss.

  • Drop down menu for top level navigation

    Dear All,
    I recently had a quick peek at SAP's corporate Portal, which has a drop down menu in the top level navigation that dynamically changes the secondary level navigation based on the option selected.
    We are currently running a standard portal (<b>not</b> an external facing lightweight framework portal), does anyone know how to achieve a similar result so that we can provide a drop-down menu to allow the user to dynamically change their role structure?
    Many thanks
    James

    Hi James,
    We have implemented such thing two years ago, also without EFP (with the light framework, it's easy). It took some days (more than 5) to change every JS, JSP etc which has to be touched for this. In the end, the first level of the navigation had been moved up into the dropdownbox, so that when changing the ddb, the two lines of the originabl TLN showed in fact the second and the third level (and the DTN starting with the fourth level).
    It was really nice, but keep in mind that this means modifying the standard and maintaining this solution with new SPS coming up...
    Hope it helps
    Detlev

  • Intelligent drop-down menu

    hi all,
    we have a need to implement an intelligent drop-down menu with JSP as
    follows:
    <select name = "myselect">
    <option value = "1">ant</option>
    <option value = "2">bee</option>
    <option value = "3">butterfly</option>
    <option value = "4">dinossaur</option>
    <option value = "5">dog</option>
    <option value = "6">elephant</option>
    <option value = "7">fox</option>
    <option value = "8">gorilla</option>
    <option value = "9">octupus</option>
    </select>
    Now, the user would like to select dog by typing very quick d + o + g.
    Using the standard drop-down menu with HTML4.0.:
    a) when the user types d, the selection goes to dinossaur;
    a) and when the user types o, the selection goes to octupus
    b) and when g is typed goes to gorilla.
    Question:
    How can we implement an intelligent drop-down menu to allow users to direct select an item by typing quickly the first few letters?
    What about XML and others?
    thanks in advance for any assistance.
    Trajano Roberto

    hi makarand_k ,
    the error is as follows:
    Unable to open location: C:/basket/animals.html?keyword=Dog&animals=1 (The filename, directory name, or volume label syntax is incorrect)
    the code is
    <html>
      <head>
        <script>
          function Search( str ){
            if(str.length == 0)
              return;
            opts = document.dataForm.animals.options.length;
            for( i = 0; i < opts; i++ )     {
              if( str.toUpperCase() == document.dataForm.animals.options<i>.name.substr( 0 , str.length ).toUpperCase() ) {
                document.dataForm.animals.options<i>.selected = true;
                break;
        </script>
      </head>
      <body>
        <form name = "dataForm" action ="animals.html">
          <table>
            <tr>
              <td><input type = "text" name = "keyword" onKeyUp = "Javascript:Search(this.value)"></td>
              <td>
                <select name = "animals">
                  <option value = "1" name="Ant">Ant</OPTION>
                  <option value = "2" name="Bee">Bee</OPTION>
                  <option value = "3" name="Butterfly">Butterfly</OPTION>
                  <option value = "4" name="Dinossaur">Dinossaur</OPTION>
                  <option value = "5" name="Dog">Dog</OPTION>
                  <option value = "6" name="Elephant">Elephant</OPTION>
                  <option value = "7" name="Fox">Fox</OPTION>
                  <option value = "8" name="Gorilla">Gorilla</OPTION>
                  <option value = "9" name="Octupus">Octupus</OPTION>
                </select>
              </td>
            </tr>
            <tr>
              <input type = "submit" value = "Submit">
            </tr>
          </table>
        </form>
      </body>
    </html>

  • Drop-Down Menu How to

    Hi all,
    I'm new to APEX (just a few days looking at it), I need to make a drop down menu like the regular website.
    Example:
    HOME - PRODUCTS - NEWS
    -Weather
    -Sports
    Like when the mouse hovers (or clicks) over the "PRODUCTS" Tab and the list of items comes below the parent tab.
    Any guidance?
    I've been searching on several forums, and they have several CSS and Javascript files, I upload those plugins to my apex application but then I don't know what to do.
    Please help!
    Thanks

    What you are trying to do is not trivial or easy to explain in a forum I think...!
    You say you don't have experience with Apex at all, but what about the other technologies involved to achieve this? Like HTML, CSS, Javascript, quantum physics (no just kidding)... You will need a very good understanding of those to implement what you want.
    Also, do you want that menu to be based in actual Apex tabs and sub-tabs or an independent menu?
    Luis

  • Drop down menu in alv toolbar?

    Hi,
    is it possible to add a drop down menu to the toolbar in my alv?
    I wanna assign 3 values to the toolbar, similar to a drop down menu in html?
    Thanx

    Hi,
    Check the below code .......
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        DATA: wa_toolbar   TYPE stb_button,
              utilities    TYPE REF   TO cl_gui_frontend_services.
        METHODS : toolbar_handle FOR EVENT toolbar      OF cl_gui_alv_grid
                                        IMPORTING e_object
                                                  e_interactive,
                  menu_bt_handle FOR EVENT menu_button  OF cl_gui_alv_grid
                                        IMPORTING e_object
                                                  e_ucomm,
                  ucomm_handle   FOR EVENT user_command OF cl_gui_alv_grid
                                        IMPORTING e_ucomm.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD toolbar_handle.
        MOVE   3 TO  wa_toolbar-butn_type.
        APPEND wa_toolbar   TO e_object->mt_toolbar.
        MOVE : 2            TO wa_toolbar-butn_type,
               '$MENU'      TO wa_toolbar-function,
               '@6C@'       TO wa_toolbar-icon,
               'User menu'  TO wa_toolbar-quickinfo.
        APPEND wa_toolbar TO e_object->mt_toolbar.
      ENDMETHOD. "toolbar_handle
      METHOD menu_bt_handle .
    IF e_ucomm = '$MENU'.
    CALL METHOD e_object->add_function
      EXPORTING
        fcode       = 'CALC'
        text        = 'Calculator'.
    CALL METHOD e_object->add_function
      EXPORTING
        fcode       = 'INT'
        text        = 'Internet Explorer'.
    ENDIF.
      ENDMETHOD. "menu_bt_handle
      METHOD ucomm_handle.
        CASE  e_ucomm.
          WHEN 'CALC'.
            IF utilities IS INITIAL.
              CREATE OBJECT utilities.
            ENDIF.
            CALL METHOD cl_gui_frontend_services=>execute
              EXPORTING
                application = 'CALC'.
          WHEN 'INT'.
            IF utilities IS INITIAL.
              CREATE OBJECT utilities.
            ENDIF.
            CALL METHOD cl_gui_frontend_services=>execute
              EXPORTING
                application = 'IEXPLORE'.
        ENDCASE.
      ENDMETHOD. "ucomm_handle
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    DATA : container    TYPE REF   TO cl_gui_custom_container,
           grid         TYPE REF   TO cl_gui_alv_grid,
           event        TYPE REF   TO lcl_event_handler,
           it_display   TYPE TABLE OF mara,
           wa_display   TYPE mara.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'BASIC'.
      PERFORM build_it_display.
      PERFORM create_objects.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN 'CANC'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  build_it_display
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_it_display .
      SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
    ENDFORM.                    " build_it_display
    *&      Form  create_objects
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_objects .
      IF container IS INITIAL.
        CREATE OBJECT container
        EXPORTING
          container_name     = 'CUSTOM'.
        CREATE OBJECT event.
        CREATE OBJECT grid
          EXPORTING
            i_parent         = container.
        SET HANDLER event->toolbar_handle FOR grid.
        SET HANDLER event->menu_bt_handle FOR grid.
        SET HANDLER event->ucomm_handle   FOR grid.
        CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'MARA'
          CHANGING
            it_outtab        = it_display.
      ENDIF.
    ENDFORM.                    " create_objects   
    Cheers,
    Jose

  • Auto-fill for drop down menu

    I fill a drop-down menu with 200+ part numbers. How can i implement the capability
    to type the first few numbers/letters to jump to the nearest part number
    beginning with my input?

    nathan wrote:
    > I can key focus the control and it opens when i hit the space bar. I type
    > the complete part number i can see on the list and hit enter. It picks the
    > first selection on the list. I doesn't select the one i type. Does it work
    > for anyone else?
    >
    > Ernie Howard wrote:
    > >Try: Key focus the control, hit the space bar, start typing, hit return.>>nathan
    > wrote> >> Greg McKaskle wrote> >> I fill a
    > drop-down menu with 200+ part numbers. How can i implement the>> capability>>
    > to type the first few numbers/letters to jump to the nearest>> part number>>
    > beginning with my input?>>Any ring or menubar menu should support>> type
    > ahead when it gets key f
    ocus.>The menu will of course work better if>> it
    > is sorted.>>Greg McKaskle>> I'm using Labview 5.0 with the menu ring. It
    > is not supporting type ahead.>> It gets the focus and the only helpful function
    > is the 'page down' key. Any>> ideas?
    I think the problem may be with the speed that the comparisons are made.
    If I type as fast as I can, I can get to the correct Number. If I pause for
    very long (1/2 sec ??? ) during the typing it will stall out at the last match.
    I am not sure if there are any settings for the keyboard (like typematic rate)
    that would help any. Since most part numbers (at least the ones I use) are
    in sequence this may be a real problem.
    Ex.
    323-1234-001
    323-1234-002
    It would be very difficult for me to get to the -002
    I can type 30 wpm but the words are gibberish !!
    Kevin Kent
    Attachments:
    Kevin.Kent.vcf ‏1 KB

  • Drop down menu doesn't close

    Hi everyone,
    Since I upgraded to Leopard, I remarked a strange menu bar behavior, can you tell me if it's the same for you : When I click on a menu item's icon (not on whatever application menu but at the right of these, like the Bluetooth, Clock or Airport menu), first the drop menu appears. Then, if I click again on this icon, the drop down menu close itself but if I move my mouse at least one pixel in the menu bar area, it opens again. It doesn't really retract or close itself, it only opens and re-open. The only thing to do is to click outside the menu area (on the desktop) to close definitely the drop down menu. Strange!
    It wasn't like this in all previous OS X and OS 9.
    Do you experience the same thing? Is it a bug?
    Thanks for sharing.

    I've already made this game. There is a much easier and more user friendly implementation. Have the user start a new game from a menu or button or whatever. Once the game is started have buttons above each row (possibly with a graphic arrow pointing down in the the color of the player who is placing the piece), when the player clicks the button drop a piece into that row.
    Don't put an action in an action, you are just making complicated code. Code (especially OO) is supposed to be uncomplicated, easy to read, write, etc....
    DeltaCoder

  • Linking to page in main frame from drop down menu movieclip

    I have a drop down menu movie clip on the 3rd frame with links that I want to link to pages on the main frame. I tried linking them the same way as if they were on the same main frame but I'm guessing it's not working because the drop down menu is on a sub frame of the movie clip. Any way around this?

    In AS3, _parent and _root are replaced by parent and root.  And almost always in implementing them you need to caste them as object types.  Try using...
    MovieClip(this.root).gotoAndStop("3");

Maybe you are looking for