Multiple selection in combo box

Hi,
How to save the selected values (with multiple selection) in to the database from combo box. I made it as multiple selection box by selecting value true for attribute Multiple, but only one value is saving in to database. How to handle it.
Regds,
Sudhakar

I 'll explain the requirement:
I have three tables, for example employee, department and empDept table which contains empId and DeptId. In my jsp, while inserting employee i need to give all existing departments in combo with multiselect option. When user press submit, i need to insert one record in employee, and records in empDept with new empId and all selected Department ids. empId is dbsequence generation.
(I did this through LOV mode of list binding editor. Even i select multiple values in JSP, its inserting only first selected record in to empDept table.)

Similar Messages

  • Search Engine issues and how to get multiple answers in combo box

    I'm doing a project in vb6 i have a data where when i search it should give multiple answers in combo box.
    example i have a debtor code each debtor code as more than one addresses when i search in one debtor code how can i get multiple addresses in the combo box. my search engine command
    as follows 
    Private Sub Command2_Click()
    Adodc1.Recordset.MoveFirst
    Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
    If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
    MsgBox "Record Not Found!", vbApplicationModal
    Adodc1.Recordset.MoveFirst
    Me.Combo1.SetFocus
    Me.Combo1.ListIndex = Me.Text11.Text
    End If
    End Sub
    when i search in my text filed i should answer to the debtor code i'm finding and multiple answer in the combo box for the same debtor code.
    Please help ;( 

    Hello,
    This forum is for VB.NET for VB6 please review the links at
    the following page.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Calling a bean method on select of Combo box item

    Hi
    On select of Combo box item in a form, text fields in the same form should be populated
    dynamically.Is it possible to call a bean method which does this,by calling onSelect() method
    of combo box ?
    Thanks in advance,
    Sridevi

    Uff, sorry!
    I ment that you write some code for the "onSelect" event which sends a request to the server with the selected value: onSelect="self.location.href='<%= request.getRequestURI()%>?selectedVal= ' + this.selectedIndex;"

  • How to show default value selected in combo box...

    Hi,
    I need an help...
    I have a combo box and i want to show the default value(coming from DB) selected on combo box on Page Render.
    Thanks,
    Neha

    Hi,
    Will this help?
    database default value in selectOneChoice
    Set default selected value in a SelectOneChoice
    Regards
    Vishal

  • Adding multiple separators in combo box

    i want to add multiple separtors in my combo box items but i can add - Value in the items list only once so i get only one separator, how can i add multiple separators in combo box items
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    Tushar Jambhekar wrote:
    I tried that already, but it doesnt work
    Works fine here:
    Actually, I would argue that this is a bug in the editor, which should ingnore duplicate hypens if they have a special value.
    Try to take over the world!
    Attachments:
    Combo.PNG ‏13 KB

  • Can I Display a Selection or Combo box using MIDP

    Hey All,
    How can I display a Selection or Combo box in My Form Using MIDlet. Please send a Way to do this. Thanks in Advance.

    Hi
    use 'List' for displaying menu..
    check the api for 'javax.microedition.lcdui.List' class
    regards
    williams

  • Default Selection in Combo Box

    Hi,
    I have a query regarding combo box. I have populated combo box using UserDataSources. Is it possible to make a default selection of an Item in combo box.
    Regards
    Ronald

    Hi Ronald,
                   I  hope the following code helps
                           Dim oComboVal1 As SAPbouiCOM.ComboBox
                           Dim oCol As SAPbouiCOM.Column
                           oCol = oMatrix.Columns.Item("V_12")
                            oComboVal1 = oCol.Cells.Item(Row).Specific
                            oComboVal1.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
                            here
    Regards
    V.Rangarajan

  • 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

  • Default selection in combo box at struts form

    hi friends..i am new person in struts form..this is my prg.. display combo box value in 18. but i want 20...how to write program....plz anybody help me....thank you............
    <%
    for (int index = 18; index < 56; index++)                                                                           %>
    <html:option value="<%=index + ""%>">
    <%=index + ""%>
    </html:option>
    <% } %>

    what you need is field "value" in the select:
    [http://struts.apache.org/1.2.x/userGuide/struts-html.html#select]
    see "value" property
    (found it easily with "struts option selected" on google)

  • Various Selections in Combo Box trigger required field

    Can anyone assist me in creating a multiple if/else statement? I have a combo box which lists all departments within my organization. I am needing assistance in creating an if/else statement that basically says if the department name is equal to say Finance, Accounting, Purchasing, etc. that a signature field is hidden because it is not required. However, if the department name were Information Services, Library, etc. the signature field would be required.
    I can get this to work if I use just one value (i.e. Finance), but when I add other values (and I've tried different methods) nothing happens.
    Thank you for any assistance you may provide.

    Check your JavaScript debugger console for errors.
    var s1 = this.getField("RBDeptHdYes").valueAsString;
    var s2 = this.getField("State").valueAsString;
    var s3 = this.getField(CMSignature); // field name must be in quotes
    if ( s1 == "Yes")
    s3.required=true;
    if (s2 != "Texas"); // no ";" here
    s3.required=true;
    if (s1== "Yes" && s2 == "Texas")
    s3.required=true;
    else
    s3.hidden=false;
    I might be easier to crate a control variable that can be set to true or false by each test and then test the control variable at the end.
    var bRequired = false; // assume not required
    this.getField("CMSignature").hidden = true; // hide field
    var s1 = this.getField("RBDeptHdYes").value;
    var s2 = this.getField("State").value;
    if ( s1 == "Yes") bRequired = true; // required
    if (s2 != "Texas") bRequired = true;
    if (s1== "Yes" & s2 == "Texas") bRequired = true;
    if (bRequired) this.getField("CMSignature").hidden = false; // signature is required
    Your script has to be placed in the "mouse up" for the radio buttons and the "blur" action for the state combo box so that when any one of these fields is changed, the script will run. This means that whenever your requirements change, each location will have to be updated unless you use a document level function which is called by each field as needed and then only the function's code would need to be changed.

  • How to enable group label selectable on combo box?

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

    When we use the combo box, we can group the items as following
    group 1
    item 1 1
    item 1 2
    group 2
    item 2 1
    item 2 2
    How to enable user select the group 1 instead of select both item 1 1 & item 1 2 ?
    In the jsf rendered result, group 1 & group 2 just a label and not selectable option, we want change it to selectable option.
    Thanks

  • Multiple Selections in List Box

    Hello all. I am new to the Adobe Family and especially PDF designing, so please bear with me. I have gone through the Help section, and did searches on here to find an answer but have not had luck. I need to make a list box that the user chooses multiple choices. As in some forms that have if you hold down the CTRL button you can choose multiple choices. During my searches I keep finding coding lines. I'm not sure how to do coding at all, I'm using the Designer 7 template forms where I can choose the icon, and then go over to Object, Value, etc. Is what I want to do even possible with Designer 7? If so, how can I make this work. If not, what program would I need to use? Thank you in advance for your help!

    When I look at either a list box or a drop-down list and look at the "Field" tab I do not see a "Allow Multiple Selection" checkbox. I am using designer version 7.0.041126.0. Is it not supported in this version or am I missing something.
    Thanks

  • Can't select a combo box?

    I'm fairly new to Flash and am having a little problem.
    Basically I have a the top of a clipboard visible at the
    bottom of the screen. When it is rolled over the clipboard rises up
    from the bottom until it is completely visible on the stage. I did
    this by creating a movieclip containing the picture of a clipboard
    and tweening it to come up, and then reversing it to go back down.
    I placed stop actions at the beginning of the movieclip, the fully
    visible position, and a gotoAndStop command at the end of the
    movieclip to return it to the start. I placed the movieclip on the
    stage, and used onRollOver and onRollout events to trigger the
    tweens.
    To ensure that the bottom of the clipboard isn't visible when
    the clipboard is off screen, I added a mask over the stage area so
    that only the portion of the clipboard on the stage will ever be
    visible.
    Here comes the question: Now I need for the clipboard to
    display a few questions with combo boxes that the user can select
    and choose an answer from when the clipboard is in it's fully
    visible position. I can get the questions onto the clipboard by
    placing them in their own layer within the movieclip. However, I
    can't make the combo boxes selectable. Is this a focus problem? Do
    I just have the questions layer in the wrong place? Does any of
    this even make sense? Any help would be greatly appreciated.

    I'm fairly new to Flash and am having a little problem.
    Basically I have a the top of a clipboard visible at the
    bottom of the screen. When it is rolled over the clipboard rises up
    from the bottom until it is completely visible on the stage. I did
    this by creating a movieclip containing the picture of a clipboard
    and tweening it to come up, and then reversing it to go back down.
    I placed stop actions at the beginning of the movieclip, the fully
    visible position, and a gotoAndStop command at the end of the
    movieclip to return it to the start. I placed the movieclip on the
    stage, and used onRollOver and onRollout events to trigger the
    tweens.
    To ensure that the bottom of the clipboard isn't visible when
    the clipboard is off screen, I added a mask over the stage area so
    that only the portion of the clipboard on the stage will ever be
    visible.
    Here comes the question: Now I need for the clipboard to
    display a few questions with combo boxes that the user can select
    and choose an answer from when the clipboard is in it's fully
    visible position. I can get the questions onto the clipboard by
    placing them in their own layer within the movieclip. However, I
    can't make the combo boxes selectable. Is this a focus problem? Do
    I just have the questions layer in the wrong place? Does any of
    this even make sense? Any help would be greatly appreciated.

  • Testing for no selection of combo box - mandatory combo

    What si the best way to see if a combo box has not been selected when it does not have a default value?
    if (ocombo.Selected.Value="")

    Hi,
    some solutions
    in c#
    if (((SAPbouiCOM.ComboBox)(oForm.Items.Item("cmbUID").Specific)).Selected != null) {
    in vb6
    if (NOT(oForm.Items.Item("cmbUID").Specific.Selected is nothing)) then
    you can also try
    if( oCombobox.Selected is null)
    lg David

  • Allow multiple selections in 2nd box of cf_TwoSelectsRelated

    Greetings. I'm very new to ColdFusion, so I apologize if this
    seems like a no-brainer.
    I've successfully used cf_TwoSelectsRelated to add related
    selects to a form. I'm able to have a user select a school, and
    have the second select box retrieve only the teachers that are from
    that school. Now I'd like to allow multiple teachers to be selected
    from the second list (to register for a workshop) and have them all
    be inserted in my registration table as individual records.
    I think I can figure out the second part of my task (insert
    them as individual records) based on
    Dan
    Bracuk's answer to a query back in February. However, for the
    first part (allow multiple selections in the second select list)
    I'm not sure whether to:
    a) try to edit the cf_TwoSelectsRelated custom tag (I think I
    would need to know some JavaScript for that? yipe!)
    or
    b) do something to my existing code to allow the second
    select to have multiple selections (but doesn't cf_select just
    require that you specify in the attributes "multiple="true"? which
    means I will probably need to edit the cf_TwoSelectsRelated custom
    tag (back to *yipe*!)
    Can anyone point me in the right direction? I've attached
    cf_TwoSelectsRelated. Please let me know if you need me to supply
    my code.
    Thanks very much in advance.
    Marianne

    Dear Dan,
    Thanks for this! Well, I went ahead and kept trying to figure
    it out while I waited - I found and took a look at
    cf_ThreeSelectsRelated and the third select box did indeed have a
    "multiple" attribute - so I borrowed it and edited the
    cf_TwoSelectsRelated (as attached - just added one line to the
    attributes list and added one cfif to the cfoutput for the 2nd
    select box), called it in the attributes of the
    cf_TwoSelectsRelated tag call in my "add attendees" page - and it
    seems to work great! No messing about with scary javascript needed.
    *whew*
    Now I just have to edit the code to allow it to insert each
    set of id's as an individual record... but I think I can handle
    that :)
    Hopefully this will help someone who's wondering if this will
    work. I couldn't find any reference to it anywhere!

Maybe you are looking for

  • Sending Data from R/3 to Java and Java to SAP

    Dear All, I am working on a scenario in which I have to send data from sap system to Non-SAP system (Java System). Now one way is that I made a RFC in my SAP system and Java can call it using JCO adapter. But In this case I am not able to understand

  • Enhancement of DataSources

    Hi Experts, When we enhance a LO Datasource (either using the field available in LIS communication Structure or adding a field not available in LIS communication structure and populating thru. CMOD), when is the new field populated with data. Thank Y

  • Lightroom & OneDrive - a match made in heaven?

    My photo collection is in a real mess! I'm seriously considering using Lightroom to organise and I'd really appreciate some feedback on my proposed approach as set out below. Importing and Storage Set Lightroom to store the catalog (and other Lightro

  • I am trying to update my credit card details, but it keeps saying we are processing your order - please try again later

    my credit has expired, and im trying to update it. but when im trying to edit payment method, it keeps saying we are currently processing your order. please try again later. if this continues to fail, please contact customer support.

  • Change Request

    Hi Friends, I need to make some changes in one of the form which is created using screen painter. The program was done by the other person. The original program When I tried for change option, the system is not allowing to make changes and throws up