Access VBA - Clearing Combo or List Box

Is there a quick way to clear all items in a Combo or List box other then While listcount > 0?
Thanks in advance for any help.
Brian

Tom,
It is a Value List I populate from a dataset.
Currently I am using the following and it works fine.  However, some times the list are quit long and can take a couple seconds.  I was looking to see if there is a clear or drop list type process versus looping through.
    While Me.SelectCustomer_cbo.ListCount > 0
        Me.SelectCustomer_cbo.RemoveItem (0)
    Wend
Thanks
Brian

Similar Messages

  • Drop down list / combo or list box properties that would be useful

    Hi there,
    I teach a class at a local college on Creating PDF forms. I have been going to a few forums and there are a few things I think would be useful to add to the dropdown and list items for the next version of Acrobat Pro.
    1.) Adding a selection for Null or blank. In my list I have on top select an Item as default - should the value be 0 or left as blank? I would like something that would validate instead of leaving a blank area. I don't want to have to install a 3rd party plugin like form router.
    2.) Multi-line Selections for items at least 2 lines would be good.
    3.) Allow a way that I can copy and paste all my items and/or values in at once from excel or word. If I am doing countires I shouldn't have to type everything in again. I know this can be done in LC
    4.) A library in Acrobat to store some of my dropdown menue that I would use often to create forms. Month, Days of Week, Provinces or State.
    5.) Also a date callendar picker like in LC would be good as well for clients and speed up entry.
    Would be interested to know if Adobe is planning any of these upgrades in a future version since LifeCycle is not available for Mac or Creative Cloud?

    Don't expect any answers as to what Adobe is planning on doing. The people posting here are 99% users, just like you, not Adobe employees. And those who do know will probably not say so, anyway...
    1) That's possible using a script. But you can always add a single space as the default value...
    2) Also possible with a script, but very buggy and not recommended.
    3) Also possible with a script.
    4) That one's easy. Use a blank PDF file where you create those menus, and then you could simply copy them over to your other files from there.
    5) There are currently two date pickers available for Acrobat forms: The one by FormRouter and a newer one by Max Wyss, which is not free but is quite good and uses a dialog object instead of form fields.
    You can request new features here, by the way:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • List box using ms access db

    hi
    can any body help me. i m trying to make a list box which takes options
    by a ms access database. plz tell me how can i display the db in the list box or combo box.
    thanks in advance

    Something like this:
    <%
    // you need code to get data from database into resultSet() called rs .............
    rs.next(); // move to first record in resultSet()
    %>
    <select name="day">
    <option selected><font face="Arial, Helvetica, sans-serif"><%= rs.getString("yourDbColumn") %></font></option>
    <%
    while rs.next(){  // loop the rest of the records
    %>
    <option><%= rs.getString("yourDbColumn") %></option>
    <%
    } // close the while looop
    %>
    </select>

  • Drop-Down List Box on Form Is Cleared at Each Step in a Workflow Process

    Hello users,
    I am posting this in the Workflow Designer, Workflow Server and Form Designer forums so that it gets a little more exposure, so I apologize if you receive this more than once.
    I have a Form Designer 5.0 form attached to a Workflow Server 6.1 process. On the form, I have a drop-down list box being populated from a text box by the OnDataLoad event on the form ONLY when the process is first initiated. The text box is populated by the OnAssign event of the first step in the process map. When the task initiator submits the form to the second step in the process and the user opens the form, the drop-down list box is no longer populated - it has been cleared. There is no code anywhere in either the form or in the process map that clears this field.
    Can anyone tell me why this is happening? Is it a bug?
    Thanks.

    Unless you hard coded the list box on design time, it will lose all data when the form is routed.
    Only solution to this is:
    create a text box and store your list box choice list to the text box before submitting your form and import the list box choice list back from the text box on form ready.
    Hope this helps.

  • Combo/ list box in Adobe Reader on iPhone 5

    I have exported to an interactive PDF which contains radio buttons, text fields, combo boxes and list boxes. This form is to be viewed on an iPhone in Adobe Reader. All the form objects work except for the combo/list boxes. They appear and a selection can be made but the selection is not displayed in the box. I have tried to enlarge the box, thinking it was too small to display the text.
    Can someone please tell me if there is a compatibility issue or a work around for this problem.
    Thanks!
    Gemma

    I tested one of my interactive PDF forms, and it works fine in Reader on iPhone 5. Here is what a list box looks like:
    If you're having problems with Adobe Reader for iOS, I'd post questions on the Reader for iOS forum here:
    http://forums.adobe.com/community/adobe_reader_forums/ios

  • Can I attach a specific action to a choice in a list box or combo box?

    I have a list of 26 sports that I would like people to choose from--in either a list box or combo box or any other tool that would work best. When they choose a particular sport, I would like another PDF to appear with the roster for that sport for this year, allowing them to check off certain players.  Is this possible? Everything I see is in javascript or some other language that I don't know.
    Thanks.
    Anne

    I am piling on Gary's question, as I would like to know the answer as well. But first a little more color in case there is another way to do this....
    When I get an email, I usually take some sort of action. I currently do not have a good way to note the actions I have taken against any particular email. This is why I want to know how to attach a note or a To Do to a particular email. I thought the To Do list would work, but when I type a To Do with a particular email sometimes it appears in the list and sometimes it doesn't.
    So my goal is to have a way to create a history of action against a particular email.
    Gary, I hope this is a valuable extension to your request as opposed to a diversion from your original intent. With any luck together we'll get a bit more traction for your request.
    Thanks.

  • How to populate a list box linked to selection in combo box?

    Hi All,
    I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
    I have a combo box and a list box.  The combo box value consist of Countries. Values are:
    Singapore
    Indonesia
    Thailand
    When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
    Can anyone shed some lights on how to achieve this?
    My spreadsheet data is as follow
    Country         Postal Code
    Singapore     680123
    Singapore     680124
    Singapore     680125
    Indonesia     155123
    Indonesia     155124
    Indonesia     155125
    Indonesia     155126
    Thailand       333123
    Many Thanks,
    Harianto

    Hi,
    I am detailing the complete steps below:
    In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
    After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
    In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
    This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
    Best of luck.
    Regards,
    Gourav

  • Combo/list box image next to option

    Hi,
    I'm trying to display an image (small icon) within a drop
    down/combo/list box in a form. I've not found a simple way of doing
    it and wondered if anyone could advise of an easy way to do this
    seemingly simple task ?
    The result I'm after can be seen here:
    http://dhtmlx.com/docs/products/dhtmlxCombo/index.shtml
    of the five combo boxes displayed I'm after the 'combo box
    with icons' result. The method used on this page to acheive the
    effect seems a bit overkill for my requirement, otherwise I'd
    try/use it. I've looked at the page source, but nothing is revealed
    regarding the html/css used to do it.
    I'd appreciate anyone advising a simple way to do this.
    Many thanks.

    If your page is asp then the code below will do what you
    want. Now when a
    user selects a country then that country id will be entered
    into a cookie.
    then when the user goes to other pages on your site you can
    have if else
    statements to show language of your choice.
    if you need the country flag icons go to ip2location.com they
    will give them
    for free.
    <form action="" name=langswitch style="display:
    inline;">
    <table cellpadding=0 cellspacing=0 style="float:right;
    margin-top:-14px;"><tr>
    <td style="padding-left: 3px; padding-right:
    3px"><img
    src="/images/flags/<%= Request.Cookies("country")
    %>.gif" width="14"
    height="11" border="0"></td>
    <td><select name="langcountry"
    onchange="document.forms.langswitch.submit()">
    <option value="uk" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("uk" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>English
    <option value="es" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("es" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Espa&ntilde;ol
    <option value="de" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("de" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Deutsch
    <option value="fr" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("fr" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Fran&ccedil;ais
    <option value="it" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("it" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Italiano
    <option value="br" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("br" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Portugu&ecirc;s (Br)
    <option value="hu" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("hu" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Magyar
    <option value="ru" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("ru" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Ð
    ÑfÑ?Ñ?кий
    <option value="jp" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("jp" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>æ-¥æo¬èªz
    <option value="kr" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("kr" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>í.oêµì-´
    <option value="cn" <%If (Not
    isNull(Request.Cookies("country"))) Then If ("cn" =
    CStr(Request.Cookies("country"))) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>ä¸æ-?(ç®?ä½")
    </select></td></tr>
    </table>
    </form>

  • Combo/List Box Item List in Properties

    Im creating a form in Acrobat.  Used a list box instead of combo box.  But need to change to combo box.  I already entered in all the items for the list.  I don't want to spend too much time on this.  Is there a way to copy the list from properties on the list box and past into the new combo box?

    You can use Acrobat JavaScript to convert the current items, getItemAt,
    in the list box/combo box to an array or list that could be edited in array definition, edit that list and then use JavaScript, setItems, to use that array to populate the field.

  • List Box Combo box linkage

    Hi,
    I have a dashboard with a regional filter that has the same 5-metric associated to each region.  I'd like my regional global combo box to filter by each indexed metric, for example, if I select KPI 2 and Global from the combo box, I'd like the index 2 to display in order chart data indexed to 2. Each metric has a unique index # associated to each regional metric, for example:
    Index      Region    Metric
    1             Global     KPI 1
    2             Global     KPI 2
    3             Global     KPI 3
    4             Global     KPI 4
    5             Global     KPI 5
    6             NA          KPI 1
    7             NA          KPI 2
    8             NA          KPI 3
    9             NA          KPI 4
    10           NA          KPI 5
    I've selected Row as the Insertion type with two series types (Global and NA).  Each series type has it's own sourced data but all point to the same destination row (A:26:C26).  I have the combo box inserting the regional source value to the cell where the list box inserts the region B26.  When I preview only one series (NA) from the list box is dynamic, meaning  if I select KPI 2 the spredsheet selector displays the region (NA) and Index 7, but when I switch regions, to Global, it's not linked to the list box and properly capturing the new index # 2.  How can I link my list box with two series (Global and Region) to filter by Region combo box?

    Hi Araceli,
    I do not fully understand your problem (I don't understand what the listbox does). But what might work a lot easier for you is to use the Filter option and not split comboboxes. That way Xcelsius can sort it out for you without having to write too much logic.
    Or are you already using a filter?

  • How to access list box variable in jsp

    hi.......I'm new to jsp ...pls help me with the following.....i've created a form with some list boxes ,text boxes and radio buttons.....now i need to access the variables of these elements in order to validate and display them.....what is the syntax in jsp for accessing the list box variable(or txt box or radio button)
    tnx in advance.....

    You normally use a Servlet class for this. You can get request parameters by HttpServletRequest#getParameter() or #getParameterValues() then.
    This is fairly trivial though. Please go through a decent JSP/Servlet book/tutorial first.

  • Poplating a List Box or Combo Box

    Hello,
    I need to add a list box onto the AR invoice screen that displays all employees. I need to do this using the SDK, 2004A and VB.Net. Has anyone done this, please forward me the source.
    Thanks John

    On Form Load call the function :
    Private Sub CreateItemsOnForm(ByVal strFormUID As String)
            Dim mobjItem As SAPbouiCOM.Item
            Dim mobjCombo As SAPbouiCOM.ComboBox
            oForm= objSBOApplication.Forms.Item(strFormUID)
            Try
                mobjItem = oForm.Items.Add("XYZ",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                mobjItem.Width =
                mobjItem.Left =
                mobjItem.Height =
                mobjItem.Top =
                mobjItem.FromPane = 0
                mobjItem.ToPane = 0
                mobjItem.Enabled = True
                mobjItem.DisplayDesc = True
                mobjCombo = mobjItem.Specific
               Catch ex As Exception
                Throw ex
            End Try
        End Sub
    AND FOR FILLING COMBO
    Dim mobjForm As SAPbouiCOM.Form
            Dim mobjCombo As SAPbouiCOM.ComboBox
            Dim mobjRecordset As SAPbobsCOM.Recordset
            Dim intCount As Integer
            Try
                mobjForm = objSBOApplication.Forms.Item(strFormuid)
                mobjCombo = mobjForm.Items.Item("XYZ").Specific
                mobjRecordset = gobjCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                mobjRecordset.DoQuery("SELECT EMPCODE,EMPNAME FROM TABLE")
                Do While mobjCombo.ValidValues.Count > 0
                    mobjCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
                Loop
                For intCount = 0 To mobjRecordset.RecordCount - 1
                    mobjCombo.ValidValues.Add(mobjRecordset.Fields.Item("EMPCODE").Value, mobjRecordset.Fields.Item("EMPNAME").Value)
                    mobjRecordset.MoveNext()
                Next
                       Catch ex As Exception
                Throw ex
                    End Try

  • My previous recipient list appears to be corrupt. When I attempt to access a particular entry to list or delete it hangs. Is there a way to just clear the history?

    My previous recipient list appears to be corrupt. When I scrool through the list it hangs on one partially completed entry. I assume the system crashed some time back and left this entry. It is a little inconvienent at times since some addresses won't auto complete. Any suggestions on deleting entries or clearing the whole list since using the normal procedure to delete an entry just hangs.  Thanks

    What happens if you select all then click "Remove from List"?

  • List Box showing Value and Display members?

    Ok this is a CONCEPT problem (the code is not professional, just read it for the concept, though it does compile and run).
    Right, I have asked many people on IRC and no one is giving me a straight answer lol so maybe some professionals can help me.
    I am trying to use a Datasource property for my combobox. This is so I can just pass an entire KeyValue pair with indexes and values to be shown in the listbox.
    Creating the keyvaluepair as a WHOLE and passing that to datasource property works perfectly.
    Creating a keyvaluepair PROCEDURALLY (in a loop or w/e) ends in the datasource property ToString()ing it, list box items show BOTH value AND display members in square brackets as an entire option.
    NOTE: Getting the lsitbox.value results in ONLY the valuemember being returned even though the listbox shows both the valuemembers AND the displaymember? it knows they are different?
    Now, I dont want any alternatives or comments about the quality of the code, all I want to know is WHY is it doing this, it seems compeltely illogical that the same TYPE and Values and can different Effects within the datasource property? Its like it knows
    it was built procedurally?
    Anyway here is some code for reference:
    // Windows Form
    namespace skbtInstaller
    public partial class frmMainWindow : Form
    public frmMainWindow()
    InitializeComponent();
    // coxArmaPath = Combo Box (simple drop down)
    this.cBoxArmaPath.ValueMember = "Key";
    this.cBoxArmaPath.DisplayMember = "Value";
    public void addServerPathItem(String Key, String Value)
    this.cBoxArmaPath.Items.Add(new KeyValuePair<String, String>(Key,Value));
    // This works fine, only the "DisplayMember" is displayed and the "ValueMember" is hidden.
    // This acts differently with the same types???
    public void setServerPathDatasource(List<KeyValuePair<String, String>> source)
    this.cBoxArmaPath.DataSource = new BindingSource(source, null);
    public class skbtServerControl
    private frmMainWindow frmMainWindowHandle;
    public void refreshformWindow()
    // Clear Drop Box (empties drop box)
    this.frmMainWindowHandle.clearPathBox();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    // Populate Drop Box
    this.frmMainWindowHandle.addServerPathItem(pair.Key, pair.Value.getTextualName()); // this works as intended
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // This works absolutely fine. ValueMembers are hidden.
    public void refreshformWindowWithSTATICDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>()
    new KeyValuePair<String, String>("testKey1", "somevalue1"),
    new KeyValuePair<String, String>("testKey2", "somevalue2"),
    new KeyValuePair<String, String>("testKey3", "somevalue3")
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // ** HERE IS THE PROBLEM?? **
    // This creates a type that seems different to the above function which works fine...
    public void refreshformWindowWithDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    pathDataSource.Add(new KeyValuePair<String, String>(pair.Key, pair.Value.getTextualName()));
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like [asjAETJQ5785d45,Some Display Text], [asawfgQ5785d45,Some Display Text], [asjAhrrQ5785d45,Some Display Text]
    // ????? surely this function should act exactly like the function above??
    Thanks!
    (I have posted on codeproject too, will condense any replies).
                 

    Thanks Michael!
    I did debug this and it turns out when i set a new BindingSource to the combo box, indeed the DisplayMember gets reset. Oddly though, the ValueMember stays the same.
    I have fixed this with setting the Members before every new bindingSource is set to the combobox, strange that only the displaymember is reset?
    For reference, the new resolved code: (this compiles albeit with designer components placed)
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace etstapp1
    public partial class Form1 : Form
    private skbtServerControl sc;
    public Form1()
    InitializeComponent();
    this.sc = new skbtServerControl(this);
    // coxArmaPath = Combo Box (simple drop down)
    this.cBoxArmaPath.ValueMember = "Key";
    this.cBoxArmaPath.DisplayMember = "Value"; // This doesnt seem to stick after the first datasource set??
    public void addServerPathItem(String Key, String Value)
    this.cBoxArmaPath.Items.Add(new KeyValuePair<String, String>(Key, Value));
    // This works fine, only the "DisplayMember" is displayed and the "ValueMember" is hidden.
    // This acts differently with the same types???
    public void setServerPathDatasource(List<KeyValuePair<String, String>> source)
    this.cBoxArmaPath.DisplayMember = "Value"; // fix datasource problem
    this.cBoxArmaPath.ValueMember = "Key"; // fix datasource problem
    this.cBoxArmaPath.DataSource = new BindingSource(source, null);
    public void clearPathBox()
    if(this.cBoxArmaPath.DataSource == null){
    this.cBoxArmaPath.Items.Clear();
    else
    this.cBoxArmaPath.DataSource = null;
    private void btnStatic_Click(object sender, EventArgs e)
    this.sc.refreshformWindowWithSTATICDatasource();
    private void btnNormal_Click(object sender, EventArgs e)
    this.sc.refreshFormWindow();
    private void btnDynamic_Click(object sender, EventArgs e)
    this.sc.refreshformWindowWithDatasource();
    public class skbtServerControl
    private CoreConfig CoreConfig;
    private Form1 frmMainWindowHandle;
    public skbtServerControl(Form1 f){
    this.frmMainWindowHandle = f;
    this.CoreConfig = new CoreConfig();
    public void refreshFormWindow()
    // Clear Drop Box (empties drop box)
    this.frmMainWindowHandle.clearPathBox();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in CoreConfig.getServerConfigList())
    // Populate Drop Box
    this.frmMainWindowHandle.addServerPathItem(pair.Key, pair.Value.getTextualName()); // this works as intended
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // This works absolutely fine. ValueMembers are hidden.
    public void refreshformWindowWithSTATICDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>()
    new KeyValuePair<String, String>("testKey1", "somevalue1"),
    new KeyValuePair<String, String>("testKey2", "somevalue2"),
    new KeyValuePair<String, String>("testKey3", "somevalue3")
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like: Some Display Text, Some Display Text, Some Display Text (PERFECT!)
    // ** HERE IS THE PROBLEM?? **
    // This creates a type that seems different to the above function which works fine...
    public void refreshformWindowWithDatasource()
    // Clear Drop Box
    this.frmMainWindowHandle.clearPathBox();
    var pathDataSource = new List<KeyValuePair<String, String>>();
    //skbtServerConfig is very simple property object
    foreach (KeyValuePair<String, skbtServerConfig> pair in this.CoreConfig.getServerConfigList())
    pathDataSource.Add(new KeyValuePair<String, String>(pair.Key, pair.Value.getTextualName()));
    // Populate Drop Box
    this.frmMainWindowHandle.setServerPathDatasource(pathDataSource);
    // cBox gets items like [asjAETJQ5785d45,Some Display Text], [asawfgQ5785d45,Some Display Text], [asjAhrrQ5785d45,Some Display Text]
    // ????? surely this function should act exactly like the function above??
    public class CoreConfig
    public Dictionary<String, skbtServerConfig> getServerConfigList(){
    return new Dictionary<string, skbtServerConfig>()
    {"somekey1", new skbtServerConfig("somename1")},
    {"somekey2", new skbtServerConfig("somename2")}
    public class skbtServerConfig
    private String name;
    public skbtServerConfig(String name)
    this.name = name;
    public String getTextualName()
    return this.name;
    Talking with someone it seems logical that every time I set a new BindingSource the component will not know if I want to keep the same member values so it resets them, but why it only resets displaymember? very strange to me.
    Thanks again.

  • List Box  Problem

    Hello Sir,
    The Problem that I am facing is not difficult but Confusing.
    In my First Jsp Page I have 2 Select boxes(Combo Boxes or U may Call List Box).
    I have Allowed Multiselect.
    the Second List Box is Empty.The person is allowed to Select what ever he wishes from the First Select Box to the Second List Box.
    Now after Selecting all his Options when he Submits his form the request is Delegated to another JSP.
    The Problem that I am facing is that I want all the item's that
    Are Present in the Second Lsit Box.
    How do I get all the (Items)values that are present in that List Box.
    With Request.getParameterValues()
    I can only get what all items are Selected in the Second List box but I need all the (Items)values that present in the List Box.
    Please Could Some One help me out.
    very Urgent
    With Regards
    Eklavya

    Hello Sir,
    The Problem that I am facing is not difficult but
    Confusing.
    In my First Jsp Page I have 2 Select boxes(Combo Boxes
    or U may Call List Box).
    I have Allowed Multiselect.
    the Second List Box is Empty.The person is allowed to
    Select what ever he wishes from the First Select Box
    to the Second List Box.
    Now after Selecting all his Options when he Submits
    his form the request is Delegated to another JSP.
    The Problem that I am facing is that I want all the
    item's that
    Are Present in the Second Lsit Box.
    How do I get all the (Items)values that are present in
    that List Box.
    With Request.getParameterValues()
    I can only get what all items are Selected in the
    Second List box but I need all the (Items)values that
    present in the List Box.
    Please Could Some One help me out.
    very Urgent
    With Regards
    EklavyaThere are 2 ways you could do this, I can think of. First, instead of using a select box for the second select box, you could use a textarea where the options from the first select box is transferred to. You would then access the values with request.getParameter("textareaName");.
    Or, you could have javascript code to loop through all of the options in the second select box, and create a string (possibly delimited by a space) upon submitting the form. Before you submit the form with Javascript, you would set a hidden field in the form to the string that was created with Javascript, and access the string with request.getParameter("hiddenfieldName"); Hope this helps.

Maybe you are looking for

  • Please help on Yahoo, PPPPLLLEeease!

    Seriously this has got me to the end of my tether and I think is Mail.App or my extreme. I have three accounts two free ones and a mail plus one. I cannot send mail from any of them. Not to place blame here but its not been right since 10.5.2 Here is

  • PI 7.1 WS receiver cc connection problem

    Hi To invoke a WS in the internet - through a receiver WS communication channel - i need to use a proxy server for my HTTP request. Where in the cc configuration or PI configuration i can set this. Thanks in advance Michael

  • Why am I getting this error message in SQL Developer-ORA-01735: invalid ALTER TABLE OPTION?

    To Whom it may Concern, I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle). Here is the syntax I am using: ALTER TABLE ACCTMANAGER ADD (Comm_id NUMBER(10)), Ben_id VARCHAR(2); The spool file I'm getting as a re

  • Language in applet

    Hi I want to know that there is an option or solution for my question. I want when the applet is being started and everything is shown. Then there are 2 buttons on the bottom with NL|EN so when i push on EN the applet should be in englisch and when i

  • Exception question

    My exception hierarchy is as follows: custom exception class MyException extending Exception. and MySQLException extending MyException. Exception->MyException->MySQLException Now consider following case: If there is a method m1 that has scope in whic