How do I limit length of a dropdown menu?

I have a drop down menu that represents a field in my database table that is several hunfred characters long. How could I limit the size of the text box on my JSP page so that it doesn't represent the entire length of the string? Either cutting it off at a certain point and not being able to see the remainder of the string would be good or even better if when the string was selected, the user could scroll across a text box of size 30 across to see the entire string.
Please help and show some code if possible.
Thank you very much in advance for your assistance.

This is the tag I am trying to limit the size of the drop down menu.
PLEASE HELP!!!!
<TR>
<TD ALIGN="right"><B><B><div class="text">Number:</div></B></TD>
<TD><SELECT type="select" name="Number">
<OPTION value=0> - Select Number - </OPTION>
<%
String[] NumberList = beanName.getList("NumberList");
if (NumberList != null)
for (int i=0; i < NumberList.length; i++)
if (NumberList.equals (strSelectedResource))
%>
<OPTION selected value="<%= NumberList[i] %>"> <%= NumberList[i] %> </OPTION>
<%
else
%>
<OPTION value="<%= NumberList[i] %>"> <%= NumberList[i] %> </OPTION>
<%
else
%>
<OPTION> No Numbers Loaded </OPTION>
<%
%>
</SELECT>
</TD>
</TR>

Similar Messages

  • How to select an item from a dropdown menu using Enter key

    A website I frequently use opens with a dropdown menu. Using my former browser, I was able to select the an item from the dropdown list by hitting the first letter with my keyboard and then hitting Enter. (Think of entering an address and selecting TX from a dropdown menu of states. Often you can hit T twice to get to TX and then the Enter key will advance the cursor to the zip code field.) Since converting to Firefox, the Enter key no longer works to advance to the next screen...I now have to move the mouse to a "Go" button and click it after selecting the desired item from the downdown menu. It's a small thing, but constantly switching back and forth between mouse and keyboard is becoming annoying. Is there an option in Firefox to select items simply by highlighting them in the dropdown menu and hitting the Enter key, instead of having to use the mouse to click a "Go" button? Thanks

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to increase the length of a dropdown?

    Hi
    Hope you are doing good!
    I have an ADF page that was auto-created out of a Human Task.
    I have multiple drop-downs (SelectOneChoice) in the form, but each of these are sized as per the data in it.
    It looks odd with different sizes, so I want to make the size of all to a fixed length. How do I do it?
    I've tested modifying the 'size', 'width' options, but nothing's working. Even searched few forums. Would you please help me in this regard.
    Thanks in Advance.
    Regards
    RaviKiran

    Hi
    Got it!
    width:175px in ContentStyle is doing it. Thanks.

  • How to add a new element in dropdown menu in PA30 screen

    Hi All,
    In the sreen of PA30, click 'Utilites(M)' on the menu, there are some elements in this dropdown list.
    In some system, if i set MOL to 22, 'Reports(japan)' will be appended at the end of the list. But some system, even if i set mol to 22, there is no this new elment in the corresponding position.
    Where to do such kind of settings?
    Many many thanks in advance!

    hai..
    Possible Answer:
    The Utilities in the tool bar is standard settings and come with country independent..settings...

  • How do I clear the "save as" dropdown menu settings?

    When saving a file which I am downloading, I get a set of locations in the drop down menu after instantiating the save as prompt. I want to clear that information for several reasons, not the least of which is that many of the locations listed are not valid save locations. How do I accomplish this task?

    Try http://www.winhelponline.com/articles/195/1/How-to-clear-the-file-names-MRU-in-Common-Dialog-boxes-in-Windows-Vista.html

  • How to unclutter the new (unlogical) search dropdown menu FF35

    See screenshot: I already did remove the search engines I do not want but the line in between the input part and the results stays. How to remove that? That position is totally not logical, it interferes.
    The icon in front of the search bar was just perfect but Firefox again did change some very logical things into not logical. Ever since the introduction of the Australis interface that seems to be popular: change good logical things into not-logical or useless things. No wonder that worldwide use of Firefox has dropped to its lowest since 2006. A shame since Firefox was very good.

    Open up '''about:config''' ''(typed in the Location Bar)''
    Right-click and toggle this preference to '''''false'''''
    '''browser.search.showOneOffButtons'''
    Then restart Firefox.

  • `my bookmarks are suddenly in dropdown menu called "bookmarks bar"

    The bookmarks in my bookmarks bar have disappeared from the bar - they are now in a dropdown menu on the bookmarks bar called (of course) "bookmarks bar".  How do I get rid of this dropdown menu and return the bookmarks to their original positions along the bar?
    I don't know how this happened - the kids were using the computer!

    Try this...
    Click the Bookmarks icon top left in the Safari toolbar then select Bookmarks Bar.
    Click anywhere on the right then press Command + C on your keyboard (copy)
    Now select Bookmarks Menu. Click anywhere on the right and press Command + V to paste.

  • How do I limit time on Facetime to include length and times?

    How do I limit time on Facetime to include length and times? ios 5.0.1 ipod touch latest model do not wish to disable whole app.  Thanks

    No such setting exists on the iPod.  For home use, you may be able to configure your router so that wifi is only available for the iPod durng certain times of the day.

  • Numeric field limit length to visible area

    I have a pdf saved as Dynamic XML Forms with a numeric field checked to limit length to visible area, but the "limit to visible area" option does not work. If save the same pdf as Static Form works fine.
    Can someone provide an example or tell me how to solve it?
    Thanks in advance

    In the change event you can place the following script (Java Script)
         if(xfa.event.newText.length >maxLength)xfa.event.change = "";
    Replace the "maxLength" with the maximum numbers you want the user to enter..
    This way it can stop the user to enter more characters after reaching the maxLength.
    Thanks
    Srini

  • How can i create list box and  dropdown in my report?

    dear experts
    how can i create list box and  dropdown in my report?
    thanks  in advance

    Pl. see the code given below.
    REPORT Z_LISTBOX.
    Data declaration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    Selection screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION SCREEN OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    AT SELECTION-SCREEN OUTPUT.
      NAME = 'PS_PARM'.
      VALUE-KEY = '1'.
      VALUE-TEXT = 'Line 1'.
      APPEND VALUE TO LIST.
      VALUE-KEY = '2'.
      VALUE-TEXT = 'Line 2'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                ID     = NAME
                VALUES = LIST.
    START-OF-SELECTION.
    Regards,
    Joy.

  • How do I limit the character count in a text field?

    I'm creating a form for co-workers to use when creating web content. I need to restrict their character count for items like headlines, titles, subtitles, etc. Any suggestions on a ready-made form to use out there? And how can I limit those fields so they don't generate content that will then need to be edited down?
    Thanks,
    EAW

    Check out this post:
    http://forums.adobe.com/message/4364378
    Randy

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • How can I limit the number of emails retained on my ipad air?

    How can I limit the number of emails that are retained on my iPad Air?  Because of legal requirements of a long-term project, I cannot permanently delete emails relating to that project from my ISP's mail server.  My gmail account contains over 17,000 emails and, upon setting up my new iPad, and updating to ios 7.1.1, I now have all 17,000+ emails taking up space.  I would like to limit the emails by count as I was able to do on my old iPad running ios 5.1.1 OR to retain them based on date range.  I have not found any instructions on the support discussions or general iPad blogs that allow me to do that.  Any way around this problem?
    I also miss the 5.1.1 mail search feature that allowed me to narrow the search by from/to/subject/all.  Does anyone know if that feature is available using some little-known ios 7.1.1 feature?
    Thanks for your help.

    jlfcba wrote:
    IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info.  There is nothing in iTunes relating to such an option either.  So, it seems I'm back to square one.
    If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
    If you have Gmail it does not.  Quite right. Gmail is rubbish.

  • HT2729 I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

Maybe you are looking for

  • R12, OS related problem

    Hi: I know this problem is not directly R12 related but this is for the R12.1.3 job. I have tried to google and fix all this afternoon but cant get it fixed. I always get help from here for EBS problems so I want to try it here and hope you dont mind

  • CPU is very hot when using Thunderbolt display and mac attached USB hard drive for TimeMachine

    Hello, i've bought the new MacBook Pro 15" and a Thunderbolt display. Everything works fine for me due to the latest updates, but i experience an issue which i really don't understand. When i connect an usb hard drive for TimeMachine to my display it

  • Aperture 3: Geotagged Photos show up in wrong part of world

    I imported a set of geotagged photos. When I look at places in Aperture 3 several of the photos are appearing in the wrong part of the world ( Kazakhstan instead of Nova Scotia). The photos were taken / geotagged by my Blackberry Storm. When I travel

  • Problem while uploading bank details in Vendor Master - XK01

    Hello Experts, I am encountering a problem while uploading Vebndor Master Details in Quality server . The bank details for a given bank (Eg : BankABC and Bank Key IN) throws an error saying BANK IN BANKABC DOES NOT EXIST . But , with the same details

  • I am trying to decide on a HDD for off site backup

    I am trying to decide on a HDD for off site backup, should I use a bus powered drive or  brick powered?  Should I go cheaper with a powered unit or convenience of a bus powered drive.  I would clone my computer and bring it to a friends house. I woul