How to Save the multiple selection check box values into the database

i have the multiple selection check box implemented in UI through drop down list,i can choose the desired values from the drop down through checkbox, but i m unable to store these values and commit the values into the database all at a time.

You can access the values using listbinding and can then store them as a string by using a delimiter.

Similar Messages

  • How can I create multiple selection check boxes in a report row?

    Hello,
    I'd like to know how a multiple selection checkbox can be created in report rows. In brief, I need to create a questionnaire template and each one of the questions will have multple options checkboxes, that means that the user can select more than one of the answers.
    Should I use apex_item.checkbox ?. I have no clue here.
    Please advice.
    Thank you
    Edited by: user9982480 on Jul 23, 2012 10:58 AM

    Hi,
    This might save your effort
    http://www.apexsolution.de/questionnaire/
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Multiple-Selection List Box Values in Multiple Columns

    I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
    columns? 

    Hi Andrea,
    I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
    control in InfoPath form.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How can I have multiple-selection list box "select at least one checkbox" option active only when the section it's in is visible?

    Hi, I'm using SP13 and InfoPath2013.
    I created a custom form and published it to SP13 document library.  This form has many MSLB.  Depending on the checkboxes selected in the 1st MSLB, the other MSLB will either hide or show.  Each MSLB is in its own section.  The requirement
    is to have each MSLB to have at least one checkbox selected.  Well, the problem is that when that MSLB isnot checked in the 1st MSLB it is not visible and shouldn't require any checkbox to be selected.  However, the form can't get submitted instead
    an error dialog would pop up and ask user to make a selection for MSLB that is not even displayed.  Is there any way to fix this besides unchecking all MSLB to be not required at least one selection?  Thank you.

    Eric, 
    I follow your reply post here and still doesn't work.  I also noticed your screen shot of selecting a field is not the same as what I see in InfoPath 2013.  
    Here is what I did, 
    1.Check At least one selection required for
    these Multiple-selection List Boxes
    as you want .
    2.Create a Formatting  rule for the 2nd
    Multiple-selection List Box.
    3.Add a  Condition as below:
    4.  I get a validation error if I don't
    select at least one checkbox in the hidden MSLB control when submitting.
    I think I'm following all the steps correctly
    but please let me know if I'm not.

  • How to submit a multiple-selection list box in an Infopath Sharepoint form as multiple entries on a Sharepoint list?

    I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
    For example, a user has to complete the following fields:
    First Name:
    Last Name:
    Favorite Color (can select more than one):
    [] Blue
    [] Red
    [] Yellow
    [] Green
    If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
    Please let me know if there is a way to do this. Any guidance would be helpful!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Capturing check box value into internal table

    Hi all,
    I am displaying the output including check box through following internal table.
    The checkbox is displayed before every record.
      <b>LOOP AT it_qals.
        WRITE:/  it_qals-t_val  AS CHECKBOX,
               5 it_qals-werk,
              12 it_qals-prueflos,
              30 it_qals-matnr,
              50 it_qals-charg,
              62 it_qals-lagortchrg.
        hide: it_qals .
      ENDLOOP.</b>
    I selected some of the records through check the checkboxes. when i click the <b>PUSHBUTTON TRANSFER</b>, those selected records only should transfer. i don't know how to modify the internal table with latest checkbox values. Initially checkbox values are blank.
    Is there any solution except Function Module.
    i would appreciate an earlier reply.
    Regards
    Prabhu

    Hello,
    Create one more table and transfer your entries into new table.
    I have attached my code for you.
    Regards,
    Naimesh
    REPORT ZTEST_NP NO STANDARD PAGE HEADING.
    TABLES: MARA, MAKT.
    DATA: BEGIN OF IT_MARA OCCURS 0,
          MATNR LIKE MARA-MATNR,
          MAKTX LIKE MAKT-MAKTX,
          SEL,
          END   OF IT_MARA.
    DATA: IT_MARA1 LIKE IT_MARA OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SET PF-STATUS 'ZTEST'.
      PERFORM GET_DATA.
      PERFORM WRITE_DATA.
    TOP-OF-PAGE.
      PERFORM HEADER.
    AT USER-COMMAND.
      CASE SY-UCOMM.
      WHEN 'SELECT'.
        PERFORM GET_DATA_SELECTED.
        PERFORM WRITE_DATA_SELE.
      WHEN 'SELALL'.
        PERFORM SELECT_ALL.
        SY-LSIND = 0.
        PERFORM HEADER.
        PERFORM WRITE_DATA.
      WHEN 'DESEL'.
        PERFORM DESELECT_ALL.
        SY-LSIND = 0.
        PERFORM HEADER.
        PERFORM WRITE_DATA.
      ENDCASE.
    *&      Form  GET_DATA
    FORM GET_DATA.
      SELECT MATNR
             INTO TABLE IT_MARA
             FROM MARA
             WHERE MATNR LIKE 'IN10020%'.
      LOOP AT IT_MARA.
        SELECT SINGLE MAKTX
               INTO   IT_MARA-MAKTX
               FROM   MAKT
               WHERE  MATNR = IT_MARA-MATNR
               AND    SPRAS = SY-LANGU.
        MODIFY IT_MARA.
        CLEAR  IT_MARA.
      ENDLOOP.
    ENDFORM.                    " GET_DATA
    *&      Form  WRITE_DATA
    FORM WRITE_DATA.
      ULINE /(50).
      LOOP AT IT_MARA.
        WRITE: / '|' NO-GAP,   IT_MARA-SEL AS CHECKBOX NO-GAP,
                 '|' NO-GAP, (10) IT_MARA-MATNR NO-GAP,
                 '|' NO-GAP, (35) IT_MARA-MAKTX NO-GAP,
                 '|' NO-GAP.
      ENDLOOP.
      ULINE /(50).
    ENDFORM.                    " WRITE_DATA
    *&      Form  HEADER
    FORM HEADER.
      ULINE /(50).
      WRITE: / '|' NO-GAP, (1) ' ' NO-GAP,
               '|' NO-GAP, (10) 'Material'    NO-GAP,
               '|' NO-GAP, (35) 'Description' NO-GAP,
               '|' NO-GAP.
    ENDFORM.                    " HEADER
    *&      Form  GET_DATA_SELECTED
    FORM GET_DATA_SELECTED.
      DATA:  L_CNT TYPE I.
      DO.
        L_CNT = L_CNT + 1.
        READ LINE L_CNT FIELD VALUE IT_MARA-MATNR INTO IT_MARA1-MATNR
                                    IT_MARA-MAKTX INTO IT_MARA1-MAKTX
                                    IT_MARA-SEL   INTO IT_MARA1-SEL.
        IF SY-SUBRC = 0.
          IF IT_MARA1-SEL = 'X'.
            APPEND IT_MARA1.
            CLEAR  IT_MARA1.
          ENDIF.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.                    " GET_DATA_SELECTED
    *&      Form  WRITE_DATA_SELE
    FORM WRITE_DATA_SELE.
      PERFORM HEADER.
      ULINE /(50).
      LOOP AT IT_MARA1.
        WRITE: / '|' NO-GAP,   IT_MARA1-SEL AS CHECKBOX,
                 '|' NO-GAP, (10) IT_MARA1-MATNR NO-GAP,
                 '|' NO-GAP, (35) IT_MARA1-MAKTX NO-GAP,
                 '|' NO-GAP.
      ENDLOOP.
      ULINE /(50).
    ENDFORM.                    " WRITE_DATA_SELE
    *&      Form  SELECT_ALL
    FORM SELECT_ALL.
      LOOP AT IT_MARA.
        IT_MARA-SEL = 'X'.
        MODIFY IT_MARA.
        CLEAR  IT_MARA.
      ENDLOOP.
    ENDFORM.                    " SELECT_ALL
    *&      Form  DESELECT_ALL
    FORM DESELECT_ALL.
      LOOP AT IT_MARA.
        IT_MARA-SEL = ' '.
        MODIFY IT_MARA.
        CLEAR  IT_MARA.
      ENDLOOP.
    ENDFORM.                    " DESELECT_ALL

  • Multiple Selection Check Box

    Hi
    I want to allow the user to select multiple items via a checkbox displayed as LOV.
    I've managed to display all the LOV entries as check boxes just by selecting a LOV but it only stores one of the items I've selected in that LOV.
    I need a checkbox system that stores data like a shuttle control, i.e. 1:2:4:9 etc
    Is this possible without using Add-on JavaScript library's?
    Thanks
    Adam

    You can access the values using listbinding and can then store them as a string by using a delimiter.

  • How to Insert check box value into database column

    Hi All,
    I had checkbox group in a region which is using an LOV......and having 18 items in that lov.
    i.e. Total 18 checkboxes in Total. User has to select only 2 checkboxes from that 18.
    I created two columns for storing two values of checkboxes. How to insert two selectives in two columns.........Moreover, How to give the query i.e. how to know which values are selected.
    Please Help me in achieving this. apart from the two columns (Focus1,Focus2) .......One more column(l_spo_val) is there which is a foreign key.
    My Insert Statement is like this:
    INSERT INTO SPO_RESEARCH_FOCUS VALUES(l_spo_val
    ,:P4_RESEARCH_LIST_1
                        ,:P4_RESEARCH_LIST_2);
    Please narrate the code if possible.
    Thanks,
    Sekhar.

    Hi Denes,
    I saw the example in your workspace and it is the same what exactly i want and instead of storing in one column i want to store the two selected values into two different columns. Also i need to restrict the selection of checkboxes upto 2 only. So If the user tries to select the third check box it doesnt have to accept.
    Even I am ready to change my table as according to your example i.e. creating only one column. Store the values of selection into that column.
    I was unable to see how u wrote the logic (Code) for your example in your workspace. It helps alot if you provide me the code for that example(Multi Checkbox One Column).
    I was facinated after watching your examples in your workspace and am very much interested to know more about Apex.
    Please help me insolving this as it is long pending issue for my requirement.
    Thanks a lot again,
    Sekhar.
    Edited by: Sekhar Nooney on Mar 26, 2009 4:35 AM

  • How to Save a File form a JAVA code into the CDrive

    Hello, i need to create a file and save it in the Cdrive of my computer.
    I could create the file and get the command prompt to ask me the file name to save it.
    However, my problem is that the file is saved in the Cdrive with nothing inside! I can manage to save the file and give it a name, but i can't save the inside of it... the page comes blank...
    if someone could help me and tell me why the inside isn't there and how to fix it, it could be very very helpfull!
    thx
    waiting for any reply
    the part where i know i got it wrong is this:
    // Save the File.txt in the Cdrive + MSG
                   System.out.println( FILENAME_MSG ) ;
                   BufferedReader br = new BufferedReader( new InputStreamReader ( System.in ),1 ) ;
                   PeastBase = br.readLine() ;
                   FileOutputStream fout = new FileOutputStream ( PeastBase ) ;
                   OutputStreamWriter out = new OutputStreamWriter ( fout , "Shift_JIS" ) ;
                   // Write in File
                   out.write( CopyBase ) ;
                   // Save PeastBase
                   out.flush() ;
                   // Close the Bufferedwriter
                   out.close() ;
    Anyway these are the complete code in case of need:
    import java.io.*;
    import java.util.ArrayList;
    class Exp11 {
         public static void main(String[] args) throws IOException{
              try{
                   File objCopyBaseFile = new File( "aaa" ) ;
                   File objPeastBaseFile = new File( "bbb" ) ;
                   //MAX Letters and Lines Input
                   final int MAX_COLS = 10 ;
                   final int MAX_ROWS = 10 ;
                   final String START_MSG = "Input any LETTER" ;
                   final String START_MSG1 = "10 LETTERS per Line, 10 LINES Max is Possible" ;
                   final String START_MSG2 = "Input w will Save the FILE and FINISH" ;
                   final String COUNT_STRING_ERROR = "Letters Input per Line is OVER" ;
                   final String COUNT_ROW_ERROR = "Lines Number is OVER" ;
                   final String FILENAME_MSG = "Input the File Name" ;
                   String PeastBase ;
                   String InputBase ;
                   String cpBuffer ;
                   String CopyBase ;
                   int rownumber ;
                   PeastBase = " " ;
                   InputBase = "w" ;
                   cpBuffer = " " ;
                   CopyBase = " " ;
                   rownumber = 0 ;
                   FileOutputStream fos = new FileOutputStream( "fos.txt" ) ;
                   OutputStreamWriter ow = new OutputStreamWriter( fos , "EUC-JP" ) ;
                   BufferedWriter bw = new BufferedWriter( new FileWriter ( "out.txt", true )) ;
                   // Start MSG
                   System.out.println( START_MSG ) ;
                   System.out.println( START_MSG1 ) ;
                   System.out.println( START_MSG2 ) ;
                   // Input
                   ArrayList<String> array = new ArrayList<String>() ;
                   int i ;
                   i = 0 ;
                   do {
                        BufferedReader br = new BufferedReader( new InputStreamReader ( System.in ),1 ) ;
                        PeastBase = br.readLine() ;
                        // Let's Count
                        if( !PeastBase.equals( InputBase) ){
                             rownumber ++ ;
                             // Check the Input letters
                             if ( countString(PeastBase,MAX_COLS )){
                                  array.add(PeastBase) ;
                             else{
                                  System.out.println( COUNT_STRING_ERROR ) ;
                             // Check the Lines
                             if ( countRow( rownumber,MAX_ROWS )){
                                  array.add( PeastBase ) ;
                             else{
                                  System.out.println( COUNT_ROW_ERROR ) ;
                   } while ( !PeastBase.equals( InputBase ) ) ;
                   // enter the data
                   for( int      j=0;j<array.size();j++ ){
                        System.out.println( "How Many Time Input==>"+array.get(j) ) ;
                   // Save the File.txt in the Cdrive + MSG
                   System.out.println( FILENAME_MSG ) ;
                   BufferedReader br = new BufferedReader( new InputStreamReader ( System.in ),1 ) ;
                   PeastBase = br.readLine() ;
                   FileOutputStream fout = new FileOutputStream ( PeastBase ) ;
                   OutputStreamWriter out = new OutputStreamWriter ( fout , "Shift_JIS" ) ;
                   // Write in File
                   out.write( CopyBase ) ;
                   // Save PeastBase
                   out.flush() ;
                   // Close the Bufferedwriter
                   out.close() ;
              catch ( IOException e ){
                   System.out.println( e ) ;
              finally{
         static boolean countString ( String bufString , int maxCount ) throws IOException{
              int StringCnt ;
              StringCnt = 0 ;
              // Count Letters per Lines
              StringCnt = bufString.length() ;
              if( maxCount>= StringCnt ){
                   return true ;
              else{
                   return false ;
         static boolean countRow ( int rownumber , int maxLine) throws IOException{
              int StringLine ;
              StringLine = 0 ;
              if( maxLine>= rownumber ){
                   return true ;
              else{
                   return false ;
    PLEASE ANY HELP
    THX

    I'm not great with IO yet, but I see you use
    out.write(CopyBase);But I only see you initialize CopyBase to equal an empty String.
    So it should be writing nothing to the file.

  • Set focus on item that selected in multiple-selection list box field in infopath

    Hi
    I have  multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
     publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
    I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
    Thanks.

    Hi,
    According to your post, my understanding is that you wanted  to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
    I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
    We can follow the steps as following:
    Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
    Set the default value for the text box control as
    substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
    (you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
    Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
    In addition, you can add Formatting action to hide the text box control.
    Here are the result screenshots for you to take a look at:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Checked some items of multiple-selection list box when form loaded in infopath

    Hi
    I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
    Thanks.

    Hi,
    According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
    I recommend to follow the steps below to achieve this goal:
    Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
    Set the Default Value of the Multiple-Selection List Box field.
    Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
    Repeat step3 based on the number of the items that you want to be pre-selected.
    More information are provided in the link below:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Multiple Select List Box default value ysing Fx or Code

    Hello,
    If anybody could help me in figuring out how to set default or customized values (checked) for a multiple select list box in infopath based on a values in a secondary data connection using the fx function or code, instead of manually typing in text in the
    default value function, it would be really helpful. Have been stuck for eternity in this 
    I have a temp table now which has each student name and the subject separtely
    something like this 
    Student Name       Subject  
    AA                              
    English
    AA                              Maths
    So that in my infopath form if I choose a student name in a drop
    down box the multiple selection list box has the values of the subject chosen by the student checked

    Hi,
    Please check the link below and see if it can meet your requirement:
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Here is the design for your scenario:
    List1 for subject name
    List2 for student and subject (just as your temp table)
    Then you could create cascading drop-down in InfoPath form.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • "Multiple Selection Dialog Box" VI Question

    I've downloaded the "Multiple Selection Dialog Box" program and it works great, except when I add *.txt to the 'Files of type' array and then save it. I close the program and then reload it again and the change I made is not present...what am I missing?
    tks

    Right-click on the 'Files of Type' array and select 'Data Operations,' and then select 'Make Current Value default.' Save the VI.
    You'll now not lose this on reopening the VI.
    Khalid

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Unable to check multiple use check box for BADI

    Hi,
    In ECC 6.0, when I am trying to activate the multiple use check box ( For multiple implementation of BADI ) , it is not allowed me the same.
    Throwing the error as - interface IF_EX_TAX1_XTXIT_SET can not be used.
    BADI name - BADI_TAX1_XTXIT_SET
    Can anyone pls help me how to do this.
    Thanks,
    Shakti

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

Maybe you are looking for

  • Allocating an item as a resource in Project 2010

    Hello I am trying to construct a Master Project Program using a resource pool. The sub projects are various manufacturing programs using common resources. Some of the resources I want to use are materials, specifically key production areas of a fixed

  • Cover Flow bug or feature?

    With Finder Preferences set to "Always open folder in a new window" and Finder view set to Cover Flow, double-clicking a folder icon in the top (Cover Flow) portion of the Finder window opens its contents in a new window behind the existing window, w

  • I am having trouble copying files from disk to disk, help.

    I have a Dual 2 GHz PowerPC G5 running Tiger 10.4.3. I am having a problem copying files since I installed Tiger. I am trying to copy from drive "LaCie d2 195 GB", this is a Firewire 800 external drive, to drive "250GB HD", this is an internal drive.

  • HT204088 how can i see if other people are using my app store account on their phone ?????

    how can i see or know if people are using my app store id on their phone ??

  • [SOLVED] zenity 3.8 broke my scripts

    After updating from zenity 3.6 to 3.8, most of my scripts dont work. A little example: #!/bin/bash title="Server Options" prompt="Pick an option:" options=("option 1" "option 2" "option 3") while opt=$(zenity --width 500 --height 300 --title="$title"