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

Similar Messages

  • How to fill the drop down menu in screen programming

    Hi, Experts,
    I have a drop down menu on the screen I want to fill that drop down menu with different values how can I do that I think that there are to ways
    Value List      from     dist/flow logic
                          A from program
    Please help me out in this way.
    Kind regards,
    Faisal.

    Hi Faisal,
      VRM_SET_VALUES function module is used to display drop down values in the screen.
    Use the following code
    * Selection screen elements                                            *
    SELECTION-SCREEN BEGIN OF BLOCK BLC1 WITH FRAME
                                        TITLE TEXT-000.
    PARAMETERS:
      P_BUKRS  TYPE BKPF-BUKRS OBLIGATORY  " Company code
               DEFAULT '1000',
      P_WERKS  TYPE VBRP-WERKS OBLIGATORY. " Plant
    SELECTION-SCREEN SKIP.
    PARAMETERS:
      P_GJAHR TYPE BKPF-GJAHR OBLIGATORY,  " Fiscal Year
      P_QUAT  TYPE CHAR20                  " Quarter
                AS LISTBOX VISIBLE LENGTH 30
                LOWER CASE OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK BLC1.
    Data:
    * To hold quarter details, these details are used to display in list box of
    * the parameter called Quarter in the selection screen.
      T_QUARTERS TYPE VRM_VALUES.
    *              AT SELECTION-SCREEN ON VALUE-REQUEST                    *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_QUAT.
    * To fill quarters......................................................
      PERFORM FILL_QUARTERS.
    * To display quarters in dropdown box...................................
      PERFORM DISPLAY_QUARTERS.
    * FORM DISPLAY_QUARTERS                                                *
    * This subroutine is used to display quarters in the dropdown box.     *
    * There are no interface parameters to be passed to this subroutine.   *
    FORM DISPLAY_QUARTERS .
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID              = 'P_QUAT'
          VALUES          = T_QUARTERS[]
        EXCEPTIONS
          ID_ILLEGAL_NAME = 1
          OTHERS          = 2.
      IF SY-SUBRC NE 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.                               " F SY-SUBRC NE 0.
    ENDFORM.                               " DISPLAY_QUARTERS
    * FORM FILL_QUARTERS                                                   *
    * This subroutine is used to fill quarters.                            *
    * There are no interface parameters to be passed to this subroutine.   *
    FORM FILL_QUARTERS .
    * Local field string declaration........................................
      DATA:
    * Field string to fill quarters in the year.
        LFS_QUARTERS TYPE LINE OF VRM_VALUES.
      REFRESH T_QUARTERS.
      LFS_QUARTERS-KEY  = '1'.
      LFS_QUARTERS-TEXT = TEXT-QU1.
      APPEND LFS_QUARTERS TO T_QUARTERS.
      LFS_QUARTERS-KEY  = '2'.
      LFS_QUARTERS-TEXT = TEXT-QU2.
      APPEND LFS_QUARTERS TO T_QUARTERS.
      LFS_QUARTERS-KEY  = '3'.
      LFS_QUARTERS-TEXT = TEXT-QU3.
      APPEND LFS_QUARTERS TO T_QUARTERS.
      LFS_QUARTERS-KEY  = '4'.
      LFS_QUARTERS-TEXT = TEXT-QU4.
      APPEND LFS_QUARTERS TO T_QUARTERS.
    ENDFORM.                               " FILL_QUARTERS
    Regards,
    Mahi.

  • Code placement for drop down menu within an animated button

    I have a main menu comprised of 7 buttons; 6 of which are all
    straight forward with an animation. (The animation is that when the
    buttons are rolled over the button extends itself out to the right.
    On the rollout the button returns to its original state.) The 6 all
    function fine.
    The 7th menu button is the same idea but with the edition of
    a two button drop down menu that appears when the main button is
    rolled over. The roll over part is fine. My problem is moving the
    cursor off the main button to get to the sub-menu items without
    having them disappear once the cursor if off the main 7th button.
    Within the time line of the 7th button (all of the buttons
    are movie clip buttons) I put an invisible button, removing the
    sections over both the main button and the sub buttons. I have
    tried the following:
    (I should point out that the labels within the button for the
    animation are an _up, _over and _out states...the buttons animate
    out in the _over label and animate back to the original position in
    the _out label,)
    The code and where I have (unsuccessfully) tried placing it
    are as follows:
    1.) On the invisible button itself (within the main button):
    on (rollOver) {
    gotoAndPlay("_out");
    2.) On the Actions layer (within the main button):
    invisible_btn.onRollOver = function () {
    gotoAndPlay("_out");
    3.) On the Actions layer (on the main timeline...which is
    where the code for the other 6 buttons is and running as should):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    btnMusic_mc.gotoAndPlay("_out");
    4.) Just a slight variation of #3 (still on the Actions layer
    of the main timeline):
    btnMusic_mc.invisible_btn.onRollOver = function () {
    brnMusic_mc.invisible_btn.gotoAndPlay("_out");
    The result for all four of these options has been the same.
    In rolling over the main button (btnMusic_mc) it does animate out
    as it should, exposing the two sub buttons. But moving the cursor
    off the btnMusic_mc neither allows me to reach the sub buttons nor
    does the btnMusic_mc animate back to its first position (as it
    should). It just snaps back into that position.
    Clearly I am missing something here. Any thoughts would be
    appreciated.

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • Pass a url variable to javascript for drop down menu

    Hello,
    I'm in over my head as far as javascript goes. This is what I
    am trying to do. I have this URL...
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    I want to take the variable for ProdAbbr which in this case
    is "shm" and make that a variable in javascript. So that I can add
    the variable to a dynamic link I'm using for a drop down menu.
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?SortBy=all&ProdAbb r=eval(ProdAbbr)'");
    I really have no clue what to do. I haven't hardly used
    javascript at all and I'm looking for some charity. Does anyone
    have any ideas on how I can do this?
    Thanks
    Steve
    Any insight is greatly appreciated.

    jawwinker wrote:
    > Hello,
    > I'm in over my head as far as javascript goes. This is
    what I am trying to
    > do. I have this URL...
    >
    > <a target=_blank class=ftalternatingbarlinklarge
    > href="
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    >
    > I">
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    >
    > I</a> want to take the variable for ProdAbbr which
    in this case is "shm" and
    > make that a variable in javascript. So that I can add
    the variable to a
    > dynamic link I'm using for a drop down menu.
    >
    >
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
    > By=all&ProdAbbr=eval(ProdAbbr)'");
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
    By=all&ProdAbbr='"+ProdAbbr+"'");
    Mick

  • Creating of a badi for drop down menu in ADobe form

    Hi ,
    Can you let me know what FM ( Function module ) should i use
    for creating a  drop down menu for a field in the Adobe form in the
    Badi ..
    This Badi is attached to the field in the smart form..
    Or a F4 help created  in the Badi  will serve the purpose...( it will act
    as a drop down menu for the field.. )..
    Let me know as soon as possible ..
    Thanks .
    Om

    Drop down menus, loke some other festures, aren’t available at that time.
    But there is a fine widget to achieve that:
    Forms+ Bundle Widget – Widgets.Mu

  • Trouble with iWeb code snippet for drop down menu

    Hello,
    So, I'm having a bit of trouble figuring this out and it goes beyond my knowledge, to be honest. I'm working on a website for someone and when viewed in Safari for Mac or iPad or even iPhone, it all works out great. But, when viewed in any other browser for Mac or Windows, the drop down doesn't display the "menu heading," only what should be the first drop down selection. Not only that, that page now becomes "unselectable" and more or less dead.
    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    On all other browsers, it displays the FAQ - Yoga option as the "title" and only displays the other two options. So, is this something that can be fixed in the code snippet or is what I'm seeing a more involved HTML issue that would require actual skills to fix? Any help or direction would be greatly appreciated because I'd love to get this knocked out and also pick something up in addition. If I have to edit the actual HTML pages themselves I could do that as well; I've got an editor and have done that for my own site when needed. Anyway, thank you very much in advance!
    Her
    <html>
    <title></title>
    <head>
    <script>
    <!--
    function land(ref, target)
    lowtarget=target.toLowerCase();
    if (lowtarget=="_self") {window.location=loc;}
    else {if (lowtarget=="_top") {top.location=loc;}
    else {if (lowtarget=="_blank") {window.open(loc);}
    else {if (lowtarget=="_parent") {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    function jump(menu)
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf("*");
    target="";
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target="_self";};
    if (ref != "") {land(loc,target);}
    //-->
    </script>
    </head>
    <body>
    <style type="text/css">
    <!--
    .combobox {
    background-color: #fef3e2;
    color: #463c3c;
    font-size: 13pt;
    font-family: optima;
    font-weight: normal;
    font-style: none;
    -->
    </style>
    <form action="dummy" method="post"><select name="choice" size="1" class="combobox" onChange="jump(this.form)"
    <option value="">Rates, Hours, Reservations</option>
    <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
    <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    </form>
    </body>
    </html>

    Here is what it should read, and does on Safari:
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    No, it shouldn't and it doesn't. It should look like :
    Rates, Hours, Reservations
    Rates and Hours
    FAQ - Yoga
    FAQ - Reiki
    FAQ - Massage
    FAQ and Reserve - Training
    Here's the correct part :
    <select>
              <option value="">Rates, Hours, Reservations</option>
              <option value="http://yogareikimassage.com/MG/Rates.html*_top">Rates and Hours</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Yoga.html*_top">FAQ and Reserve - Yoga</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Reiki.html*_top">FAQ and Reserve - Reiki</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Massage.html*_top">FAQ and Reserve - Massage</option>
              <option value="http://yogareikimassage.com/MG/FAQ_-_Personal_Training.html*_top">FAQ and Reserve - Training</option>
    </select>
    The <select> item was missing. And if you don't want the first line in the menu (Rates, Hours, Reservations) then don't enter it in the first place.
    BTW, it's not a dropdown menu. It's a selection list in a form.

  • - Looking for Drop Down menu script w/ semi-transparent backgrounds...

    Looking for a dropdown menu script that will allow
    semi-transparent
    backgrounds (so we can partly see what the list is displaying
    over).
    I've Googled this to death using all the obvious keywords,
    but have yet to
    find what I'm looking for.
    Thanks.

    Yes. I understand and agree. Good point.
    Thanks.
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"
    "T.Pastrana - 4Level" <[email protected]> wrote in message
    news:[email protected]...
    >I posted mainly for the benefit of Reese, I know you know
    this.
    >
    >
    > --
    > Best Regards,
    > ..Trent Pastrana
    > www.fourlevel.com
    >
    >
    >
    >
    >
    >
    > "Al Sparber- PVII" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Actually, it's not an error. But we do happen to
    have it in a CC on
    >> that page because the last time I posted that page
    on this forum it
    >> was criticized for "failing" the W3C CSS validator.
    >>
    >>
    http://www.projectseven.com/foxy.gif
    >>
    >> The Firefox console simply would report it as a
    warning - not an
    >> error. It would have no affect on the page. But
    thanks for pointing
    >> that out.
    >>
    >> --
    >> Al Sparber - PVII
    >>
    http://www.projectseven.com
    >> Extending Dreamweaver - Nav Systems | Galleries |
    Widgets
    >> Authors: "42nd Street: Mastering the Art of CSS
    Design"
    >>
    >>
    >>
    >>
    >> "T.Pastrana - 4Level" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >>> If you want your page to validate you might want
    to separate the
    >>> properties. Some modern browsers like Firefox
    will throw an error
    >>> with the filter property.
    >>>
    >>> #menu li {
    >>> opacity: 0.85;
    >>> }
    >>>
    >>> <!--[if IE]><style
    type="text/css">#menu li {filter:
    >>>
    alpha(opacity=85);}</style><![endif]-->
    >>>
    >>>
    >>> --
    >>> Best Regards,
    >>> ..Trent Pastrana
    >>> www.fourlevel.com
    >>>
    >>>
    >>>
    >>>
    >>> "Al Sparber- PVII"
    <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> If, for example, you are using an unordered
    list for your menu, set
    >>>> opacity on the LI, like so:
    >>>>
    >>>> #menu li {
    >>>> opacity: 0.85;
    >>>> filter: alpha(opacity=85);
    >>>> }
    >>>>
    >>>> As far as I know, there are no
    "off-the-shelf" menu tools of worth
    >>>> that offer this as an automatic option. You
    should pick yourself a
    >>>> good menu system then set opacity on the
    relevant element. The
    >>>> menu "script" or "system" really has nothing
    to do with it.
    >>>>
    >>>> If you need a good base menu system, you can
    find free ones and
    >>>> commercial ones on our site. Here is an
    example of one with
    >>>> transparency:
    >>>>
    >>>>
    http://www.projectseven.com/products/menusystems/pmm/css_tweaks/opacity/
    >>>>
    >>>>
    >>>>
    >>>> --
    >>>> Al Sparber - PVII
    >>>>
    http://www.projectseven.com
    >>>> Extending Dreamweaver - Nav Systems |
    Galleries | Widgets
    >>>> Authors: "42nd Street: Mastering the Art of
    CSS Design"
    >>>>
    >>>>
    >>>>
    >>>>
    >>>> "Reese" <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> Looking for a dropdown menu script that
    will allow
    >>>>> semi-transparent backgrounds (so we can
    partly see what the list
    >>>>> is displaying over).
    >>>>>
    >>>>> I've Googled this to death using all the
    obvious keywords, but
    >>>>> have yet to find what I'm looking for.
    >>>>>
    >>>>> Thanks.
    >>>>>
    >>>>
    >>>
    >>>
    >>
    >
    >

  • CSS Drop down menu; how to align the right edge of drop down and parent menu?

    Hello everyone,
    I have a drop-down menu that is currently working well.
    The only change I need to make is to have the right edge of the  drop-down menu to align with the right edge of the parent menu. When you  hover over the menu, it currently "drops" down and to the right, with  the left edges aligned.
    I want the menu to "drop" down and to the left, so the right edges are aligned.
    I have tried fiddling with floats and absolute/relative positioning. I'm not sure what needs to be changed.
    Any help you can provide is greatly appreciated! I'm learning via "cut and paste", so please go easy on any terminology you may use.
    Thank you!
    Here is my code:
    .chromestyle{
         width: 100%;
         font-weight: bold;
         float: left;
         height: 29px;
    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    .chromestyle ul{
    border: 0px solid #BBB;
    width: 100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: right; /*set value to "left", "center", or "right"*/
    .chromestyle ul li{
    display: inline;
    .chromestyle ul li a{
    color: #000000;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-left: 1px solid #DADADA;
    .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
    background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
    /* ######### Style for Drop Down Menu ######### */
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    width: 200px;
    visibility: hidden;
    .dropmenudiv a{
    width: auto;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 2px 5px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #0000ff;
    color: #fff200;

    Try this:
    .chromestyle{
         font-weight: bold;
         height: 29px;
    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    .chromestyle ul{
    border: 0px solid #BBB;
    width:100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: left; /*set value to "left", "center", or "right"*/
    .chromestyle ul li{
    display: inline;
    .chromestyle ul li a{
    color: #000000;
    padding: 4px 7px;
    margin: 0;
    text-decoration: none;
    border-left: 1px solid #DADADA;
    .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
    background: url(chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
    /* ######### Style for Drop Down Menu ######### */
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    visibility: hidden;
    text-align:left;
    .dropmenudiv a{
    width: auto;
    display: block;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 3px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #0000ff;
    color: #fff200;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • ESS - Drop down menu REGION is empty

    Hi all!
    How can I fill the drop down menu REGION with he german regions, like Bavaria, Saxony, Hesse etc. in the backend.
    Where can I activate it?
    Is it also possible to reference the country with region?
    Best regards,
    Dirk

    Hi all!
    How can I fill the drop down menu REGION with he german regions, like Bavaria, Saxony, Hesse etc. in the backend.
    Where can I activate it?
    Is it also possible to reference the country with region?
    Best regards,
    Dirk

  • I'm trying to find a word processing app that is comparable with Microsoft word, that supports drop down menu's for filling out forms. Any recommendations?

    I'm trying to find a word processing app that is comparable with Microsoft Word, but can use drop down menu's to fill in forms? Any suggestions

    Microsoft Word for Mac
    OpenOffice
    NeoOffice
    LibreOffice

  • How do I get a sum of cells for rows that contain a text in a drop down menu?

    I am trying to track individual sales with each of my vendors. I have a column of drop down menu's that list each of my vendors. I am trying to associate a dollar amount for a single transaction in a row that is associated with a vendor and get a sum for all of my single trasactions with that vendor for the year. I have used =countif to build a pie chart of % of transactions per vendor now I am trying to get a dollar amount as well
    Thanks in advance
    Don

    HI Don,
    COUNTIF will count, SUMIF will sum.
    The main difference between them is that COUNTIF works with data in a single column—in this case the column containing the vendor names—while SUMIF uses two columns—the vendor names to decide which rows to include in the sums and the amount column to determine the amount to incude.
    Example:
    Main: Vendor names in column A, descriptions in columns B and C, and dollar amounts in column D
    Summary: Vendor names in column A, Number of transactions in column B, Dollar totals in column C
    Formulas inn Summary (both are entered in row 2 and filled doen to the last row):
    B2: =COUNTIF(Main :: $A,A2)
    C2: =SUMIF(Main :: $A,A2,Main :: $D)
    Regards,
    Barry

  • How do I get a drop down menu to auto default to option selected a value other than the default written in the javascript?

    I use web based software where I have to select from a drop down menu a particular option. However, I only ever use 1 option. Sometimes as much as 100 times a day. Is there anyway to get Firefox to auto select the same option every time? I don't have access to the source code so I cant change <option selected="selected" value="">.

    A possibility would be a Greasemonkey script to do this automatically or a JavaScript bookmarklet to do it manually.
    You would need to remove the selected="selected" from the currently selected option and set that attribute for the wanted option.
    You can test the bookmarklet here:
    *https://developer.mozilla.org/en/HTML/Element/select
    <pre><nowiki>javascript:(function(){var d=document,s=d.getElementsByTagName('SELECT')[0],o=s.getElementsByTagName('OPTION'),S='selected',v='value1',i;for(i=0;O=o[i];i++){if(O.value==v){O.setAttribute(S,S);O.selected=true}else{O.removeAttribute(S);O.selected=false;}}})();</nowiki></pre>
    If there are more 'selects' then you need to adjust the element number [0] and you also need to adjust the value of the wanted option.

  • Making drop down menu for entry fields in database

    <%@ page language="java" contentType="text/html" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.math.*" %>
    <%@ page import="java.util.*" %>
    <%@ include file="/global/util.inc" %>
    <%@ include file="/global/user_session.jsp" %>
    <%@ include file="/global/connection_prepare_marketing.jsp" %>
    <html>
    <head>
    <title>Marketing Data Entry</title>
    <LINK REL=STYLESHEET HREF="/global/app_main.css">
    <BODY bgcolor=#FEFFE8>
    <%
    int     CID = 0;     
         CID = Integer.parseInt(request.getParameter("cid"));
    if (request.getParameter("delete") != null) {
         // Do the delete via a PreparedStatement
            java.sql.PreparedStatement ps = null;
         ps = db.prepareStatement("delete from hit_or_miss where hom_ID = ?");
         ps.setInt(1, CID);
         ps.executeUpdate();
         CID = 0;
         out.print ("<font color=darkblue>The record has been deleted successfully</font>");
    if (request.getParameter("update") != null) {
           // Set inputs in order to evaluate
            String          DE = request.getParameter("date_entered");
                   DE = DE.replaceAll("[a-zA-Z]","");             // Get rid of letters
         String          SI = request.getParameter("summit_ID");
                   SI = SI.replaceAll(",","");                 //Get rid of commas
         String          TT = request.getParameter("transaction_type");    //No change needed
           String            NL = request.getParameter("notional");
                     NL = NL.replaceAll("[a-zA-Z]","");               // Get rid of letters
                     NL = NL.replaceAll(",","");                  // Get rid of commas
           BigDecimal      NTL = new BigDecimal(NL);
         String          ST = request.getParameter("structure");
         String          CP = request.getParameter("counterparty");
         String          ED = request.getParameter("expiry_date");
                   ED = ED.replaceAll("[a-zA-Z]","");                // Get rid of letters
         String          SD = request.getParameter("start_date");
                   SD = SD.replaceAll("[a-zA-Z]","");                // Get rid of letters
         String          MD = request.getParameter("maturity_date");
                   MD = MD.replaceAll("[a-zA-Z]","");                // Get rid of letters
         String          CT = request.getParameter("currency_type");
         String          MRKTR = request.getParameter("marketer");
           String            SSC = request.getParameter("sales_credit");
                     SSC = SSC.replaceAll("[a-zA-Z]","");         // Get rid of letters
                     SSC = SSC.replaceAll(",","");                 // Get rid of commas
           BigDecimal      SC = new BigDecimal(SSC);
         String          MRKP = request.getParameter("markup");
                   MRKP = MRKP.replaceAll("[a-zA-Z]","");    // Get rid of letters
                   MRKP = MRKP.replaceAll(",","");           // Get rid of commas
         BigDecimal     MP = new BigDecimal(MRKP);
         String          CC = request.getParameter("comments_color");
      if (     SD != null && MD != null && ED != null ) {
         // First get the ID to use     
            String sql = " "+
              "begin "+
                "declare @new_id int "+
                 "if (select count(*) from hit_or_miss ) = 0 "+
                 "       begin "+
                 "       select @new_id = 1 "+
                 "       end   "+
                 "else "+
                 "       begin "+
                "       select @new_id = max(hom_ID) + 1 from hit_or_miss "+
                 "       end "+
              "select newID=@new_id "+
           "end";
         int nID = 0;
         rs = st.executeQuery(" "+ sql + " ");
         while (rs.next()) {
              nID = rs.getInt("newID");
         // Get timestamp for insert
         java.util.Date curr_dt = new java.util.Date();
            java.sql.Timestamp dt = new java.sql.Timestamp(curr_dt.getTime());
         // Now we check if it is an insert or update based on the passed ID
         if (CID == 0) {
              // Do the insert via a PreparedStatement
              java.sql.PreparedStatement ps = null;
              ps = db.prepareStatement("insert into hit_or_miss values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
              ps.setInt(1, nID);
              ps.setString(2, DE);
              ps.setString(3, SI);
              ps.setString(4, TT);
              ps.setBigDecimal(5, NTL);
              ps.setString(6, ST);
              ps.setString(7, CP);
              ps.setString(8, ED);
              ps.setString(9, SD);
              ps.setString(10, MD);
              ps.setString(11, CT);
              ps.setString(12, MRKTR);
              ps.setBigDecimal(13, SC);
              ps.setBigDecimal(14, MP);
              ps.setString(15, CC);
              ps.executeUpdate();
              out.print("<font color=darkblue>The new record has been inserted into the database successfully</font>");
         } else {
              // Do the update via a PreparedStatement
              // First we insert a row into the archive table
                 java.sql.PreparedStatement ps = null;
                    ps = db.prepareStatement("update hit_or_miss set date_entered = getdate(), summit_ID = ?, transaction_type = ?, notional = ?, structure = ?, counterparty = ?, expiry_date = ?, start_date = ?, maturity_date = ?, currency_type = ?, marketer = ?, sales_credit = ?, markup = ?, comments_color = ? where hom_ID ="+CID+" ");
              ps.setString(1, DE);
              ps.setString(2, SI);
              ps.setString(3, TT);
              ps.setBigDecimal(4, NTL);
              ps.setString(5, ST);
              ps.setString(6, CP);
              ps.setString(7, ED);
              ps.setString(8, SD);
              ps.setString(9, MD);
              ps.setString(10, CT);
              ps.setString(11, MRKTR);
              ps.setBigDecimal(12, SC);
              ps.setBigDecimal(13, MP);
              ps.setString(14, CC);
              ps.executeUpdate();
              out.print("<font color=darkblue>This record has been updated successfully</font>");
      } else {
         out.print("<font color=red>You must fill in the date and amount sections of this form in order the write to the database to occur - please try again</font>");
         String DateEntered_text = null;
         String SummitID_text = null;
         String TransactionType_text = null;
         String Amount_text = "0000000.00";
         String Structure_text = null;
         String Counterparty_text = null;
         String ExpiryDate_text = null;
         String StartDate_text = null;
         String MaturityDate_text = null;
         String CurrencyType_text = null;
         String Marketer_text = null;
         BigDecimal SalesCredit_text = new BigDecimal(0.0);
         BigDecimal Markup_text = new BigDecimal(0.0);
         String CommentsColor_text = null;
         String Notional_text = null;
    if (CID == 0) {
         String Expiry_Date_text = "";
            String Start_Date_text = "";
            String Maturity_Date_text = "";
    } else {
         rs = st.executeQuery("select o.hom_ID, DateEntered=convert(varchar(10),o.date_entered,101), o.summit_ID, o.transaction_type, Notional=convert(varchar(100),convert(money,o.notional),1), o.structure, o.counterparty, ExpiryDate=convert(varchar(10),o.expiry_date,101), StartDate=convert(varchar(10),o.start_date,101), MaturityDate=convert(varchar(10),o.maturity_date,101), o.currency_type, o.marketer, o.sales_credit, o.markup, o.comments_color from hit_or_miss o where o.hom_ID =  "+CID+ " ");
         while (rs.next()) {
              DateEntered_text = rs.getString("DateEntered");
              SummitID_text = rs.getString("summit_ID");
              TransactionType_text = rs.getString("transaction_type");          
              Amount_text = rs.getString("Notional");
              Structure_text = rs.getString("structure");
              Counterparty_text = rs.getString("counterparty");
              ExpiryDate_text = rs.getString("ExpiryDate");
              StartDate_text = rs.getString("StartDate");
              MaturityDate_text = rs.getString("MaturityDate");
              CurrencyType_text = rs.getString("currency_type");
              Marketer_text = rs.getString("marketer");
              SalesCredit_text = rs.getBigDecimal("sales_credit",8);
              Markup_text = rs.getBigDecimal("markup",5);
              CommentsColor_text = rs.getString("comments_color");
    %>
    <table id="main" border=0 cellspacing="4" cellpadding=3 bgcolor="buttonface">
         <tr><td ><form name="myform" method="post" action="/applications/marketing/hit_or_miss.jsp">
    <table  border="0" cellspacing="4" cellpadding="3">
         <tr class=tableHeader>
              <td valign=top colspan=2 >Marketing Form</td>
         </tr>
         <tr>
              <td valign=top><font size="-1"><b>Date Entered:</b></font></td>
              <td>     
                   <input type=text name=date_entered size=8 value='<%=DateEntered_text%>'>
                   <a href="javascript: void(0);"
                   onmouseover="if (timeoutId) clearTimeout(timeoutId); window.status='Show Calendar'; return true;"
                   onmouseout="if (timeoutDelay) calendarTimeout(); window.status='';"
                   onclick="g_Calendar.show(event, 'myform.date_entered', false, 'mm/dd/yyyy'); return false;">
                   <img src='/images/calendar.gif' name='imgCalendar' width=20 height=10 border=0 alt=''></a>
              </td>
         </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Summit ID:</b> </font></td>
                    <td><input type=text name=summit_ID size=25 value='<%=SummitID_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Transaction Type:</b> </font></td>
                    <td><input type=text name=transaction_type size=25 value='<%=TransactionType_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Notional:</b> </font></td>
                    <td><input type=text name=notional size=25 value='<%=Notional_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Structure:</b> </font></td>
                    <td><input type=text name=structure size=25 value='<%=Structure_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Counterparty:</b> </font></td>
                    <td><input type=text name=counterparty size=25 value='<%=Counterparty_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Expiry Date:</b></font></td>
                    <td>   
                            <input type=text name=expiry_date size=8 value='<%=ExpiryDate_text%>'>
                            <a href="javascript: void(0);"
                            onmouseover="if (timeoutId) clearTimeout(timeoutId); window.status='Show Calendar'; return true;"
                            onmouseout="if (timeoutDelay) calendarTimeout(); window.status='';"
                            onclick="g_Calendar.show(event, 'myform.expiry_date', false, 'mm/dd/yyyy'); return false;">
                            <img src='/images/calendar.gif' name='imgCalendar' width=20 height=10 border=0 alt=''></a>
                    </td>  
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Start Date:</b></font></td>
                    <td>   
                            <input type=text name=start_date size=8 value='<%=StartDate_text%>'>
                            <a href="javascript: void(0);"
                            onmouseover="if (timeoutId) clearTimeout(timeoutId); window.status='Show Calendar'; return true;"
                            onmouseout="if (timeoutDelay) calendarTimeout(); window.status='';"
                            onclick="g_Calendar.show(event, 'myform.start_date', false, 'mm/dd/yyyy'); return false;">
                            <img src='/images/calendar.gif' name='imgCalendar' width=20 height=10 border=0 alt=''></a>
                    </td>  
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Maturity Date:</b></font></td>
                    <td>   
                            <input type=text name=maturity_date size=8 value='<%=MaturityDate_text%>'>
                            <a href="javascript: void(0);"
                            onmouseover="if (timeoutId) clearTimeout(timeoutId); window.status='Show Calendar'; return true;"
                            onmouseout="if (timeoutDelay) calendarTimeout(); window.status='';"
                            onclick="g_Calendar.show(event, 'myform.maturity_date', false, 'mm/dd/yyyy'); return false;">
                            <img src='/images/calendar.gif' name='imgCalendar' width=20 height=10 border=0 alt=''></a>
                    </td>  
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Currency Type:</b> </font></td>
                    <td><input type=text name=currency_type size=25 value='<%=CurrencyType_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Marketer:</b> </font></td>
                    <td><input type=text name=marketer size=25 value='<%=Marketer_text%>'></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Sales Credit:</b> </font></td>
                    <td><input type=text name=sales_credit size=8 value='<%=SalesCredit_text%>'><b>%</b></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Markup:</b> </font></td>
                    <td><input type=text name=markup size=8 value='<%=Markup_text%>'><b>%</b></td>
            </tr>
         <tr>
                    <td valign=top><font size="-1"><b>Comments/Color:</b> </font></td>
                    <td><input type=text name=comments_color size=8 value='<%=CommentsColor_text%>'><b>%</b></td>
            </tr>
         <tr>
              <td colspan=2><hr width=100%></td>
         </tr>
         <tr>
              <td colspan=2>     <input type="submit" name="update" value="Update Record"
                        style='width:100px;font:9px verdana;'>
         <% if (CID != 0) { %>
                            <input type="submit" name="delete" value="Delete Record"
                                    onclick="return confirm('Are you sure you want to delete this record?');"
                                    style='width:100px;font:9px verdana;'>
            <% } %>
                   <input type="button" name="close" value="Close Window"
                        style='width:100px;font:9px verdana;'
                   onclick='javascript:window.close();'>
              </td>
         </tr>
    </table>
    </td>
    </tr>
    </table>
    <input type=hidden name=login_id value=<%= request.getParameter("login_id") %>>
    <input type=hidden name=cid value=<%=CID%>>
    <SCRIPT LANGUAGE="JavaScript">
    opener.myform.submit();
    </SCRIPT>
    </form>
    </body>
    </html>thats my code for part of database, in the parts that go "if CID = 0", thats the new record field, in there right now i just have users put in info into blank input fields, however, i would like to know if i can make certain fields, like Mraketer, and Counterparty fields to have drop down menus, Anyone know??

    So basically the main focus of what I was askin is in this block of code below:
    if (CID == 0) {
              // Do the insert via a PreparedStatement
              java.sql.PreparedStatement ps = null;
              ps = db.prepareStatement("insert into hit_or_miss values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
              ps.setInt(1, nID);
              ps.setString(2, DE);
              ps.setString(3, SI);
              ps.setString(4, TT);
              ps.setBigDecimal(5, NTL);
              ps.setString(6, ST);
              ps.setString(7, CP);
              ps.setString(8, ED);
              ps.setString(9, SD);
              ps.setString(10, MD);
              ps.setString(11, CT);
              ps.setString(12, MRKTR);
              ps.setBigDecimal(13, SC);
              ps.setBigDecimal(14, MP);
              ps.setString(15, CC);
              ps.executeUpdate();
              out.print("<font color=darkblue>The new record has been inserted into the database successfully</font>");
         } else {
              // Do the update via a PreparedStatement
              // First we insert a row into the archive table
                 java.sql.PreparedStatement ps = null;
                    ps = db.prepareStatement("update hit_or_miss set date_entered = getdate(), summit_ID = ?, transaction_type = ?, notional = ?, structure = ?, counterparty = ?, expiry_date = ?, start_date = ?, maturity_date = ?, currency_type = ?, marketer = ?, sales_credit = ?, markup = ?, comments_color = ? where hom_ID ="+CID+" ");
              ps.setString(1, DE);
              ps.setString(2, SI);
              ps.setString(3, TT);
              ps.setBigDecimal(4, NTL);
              ps.setString(5, ST);
              ps.setString(6, CP);
              ps.setString(7, ED);
              ps.setString(8, SD);
              ps.setString(9, MD);
              ps.setString(10, CT);
              ps.setString(11, MRKTR);
              ps.setBigDecimal(12, SC);
              ps.setBigDecimal(13, MP);
              ps.setString(14, CC);
              ps.executeUpdate();
              out.print("<font color=darkblue>This record has been updated successfully</font>");
         }     when CID = 0, what it does is it pops up a new window called "New Record" and in this new window, there are boxes where inputs can be made, so that when u hit submit, it submits into the database.
    What I want to do is, for example, there is a input field called "Marketer" where one can type in his own name as the Marketer, I want make this into a drop down box, where you can pick the marketer, and not have to type it in.
    You know how websies have New User, where you create a new user that is added to their database, and usually the COUNTRY field is a drop down menu where you pick the country from. I would like to do that to my database, and this is the area, or the code, that deal w/ new record "IF CID =0" and edit record "ELSE"
    Is this possible?
    Thanks in Advance

  • How can I locate the drop down menu to select thumbnails for viewing my photos?

    I am using Microsoft Windows Vista. I select Files> Get photos and Videos> From Files and Folders.  I select my photos and In my views I have a choice of different size icons, list, details and tiles.  The icons are a flower image. When I select an image to view it only appears as an extra large icon on the middle right side of the moniter.  I would like to view the thumbnail of the photo bfore I bring to my organizer.  The drop down menu doesn't have a choice for thumbnail.  

    Perhaps I need to supply more details.  I am using PSE9.  I haven't any problem importing the images into the Organizer as I just select the Icons and select "Get Media" or "Open" and they transfer over to the Organizer.  I would like to see the image as a thumbnail not an icon when when making the selection.  If I right click them, the Icon, and select open they will open in "Windows Live Photo Gallery".
    The icons are now listed on the left  side of the monitor about the right middle it states "Select A File To Preview".  When I select a file (icon) a large file (icon) appears in that area and it should be a thumbnail of the image. Somehow I can't locate the drop down menu taht permits me to make that selection.  I think it has something to do with my files being able to open in Windows Live Photo Gallery when right clicking and select Open.  Is the drop down menu only available in Windows 7?

  • How do I get my application to continue processing instead of waiting for a menu selection when the user clicks on a drop-down menu?

    I'm developing a process-control application,using serial communication for data acquisition. My problem - I need this serial read of data to be continuous. But, when I click on a drop-down menu, the rest of the processing halts until I click on one of the menu items in the drop-down list and I lose data in that interval. What can I do?

    In most process-control applications it is not about just avoiding lost measurement data. The most important is having a robust control-algoritm that reacts to a change of input-situation in a given time.
    A non-responsive system is not a very reliable process-control solution.
    The vi you mentioned are only around since the latest versions and the old method of polling controls still suits many applications (but that's another discussion).
    As about RS-232 input time-outs, I have never used that.
    In the time before VISA was created I (as other LabVIEW users I discovered) used a method of storing every incoming string in a buffer (memory-vi with USR) and that still works (classic serial VI's versus VISA is also another never-ending discussio
    n).

Maybe you are looking for

  • ITunes 6 tracks will not play

    Since upgrading to iTunes 6.0.1 I have not been able to play any tracks or CD tracks - the track name and other information appears at the top but the diamond will not move - you can advance the diamond but still the track will not play. Any clues? I

  • Odd Div Background Behavior

    I'm trying to build my first website for publication, but the background image of my "main" div goes all the way left when I preview in a browser. Page properties have margins set to 0 and a background. Inside the 760 wide "container" div, which has

  • Photoshop CS5 quits unexpectedly and sometimes receive error 16

    Hi, I purchased Photoshop CS5 for Macintosh 10.5.8.  It has repeatedly crashed every time.  It quits unexpectedly when lauching or I just receive an error 16.  I spent a lot of money to not have working software.  We installed the 12.0.1 update.  We

  • Can you make a Mail account template in MacMail for other e-mail providers like Google, etc?

    I have my own website and I wantto use it's email feature. I have set up many mailboxes  and will probably do more. Apple has done a great job making mail templates for Yahoo, Google, Apple. etc. mail accounts. I was wondering if once I set up one fo

  • Improving calc time..Issue using @CurrMBR in @MAXSRANGE

    I have a calc ..If I use @CurrMBR(Entity)..It takes 11 min ..If I hardcode to lets say ....100 ,it takes 7 sec. Can I modified the calc to work it more faster. ========================== FIX("Plan", Working, Fy12, "Jan":"Dec", "LOC", @REMOVE(@IDESC("