Problem In Check Box

Hi All
I have designed a form in screen painter which contains the employee details.
I have kept two check boxes MALE and FEMALE with itemuid as chmale and chfemale.
I wont to do some validation.
It is check box so I can check both of them,so I need to do validation
My code
Case SAPbouiCOM.BoEventTypes.et_CLICK
Try
Select Case pVal.ItemUID
Case "chmale"
oCheckFemale = oForm.Items.Item("chfemale").Specific
If oCheckFemale.Checked = True Then
oCheckMale.Checked = True
oCheckFemale.Checked = False
End If
Case "chfemale"
oCheckMale = oForm.Items.Item("chmale").Specific
If oCheckMale.Checked = True Then
oCheckMale.Checked = False
oCheckFemale.Checked = True
End If
End Select
This is not working.
SAP hangs up for some time.

Hi Anto,
I'm not sure but I think the Checked property of the check box, triggers a Click event. If so, your code is creating an infinite loop.
Why don't you use two Option buttons grouped together. That way you don't need to code any verification.
If  you're working with XML forms, you just need the following:
<action type="add">
     <item uid="Radio1" type="122" left="132" tab_order="0" width="160" top="91" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="1" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
     <AutoManagedAttribute></AutoManagedAttribute>
          <specific caption="Radio 1" AffectsFormMode="1" val_on="Y" val_off="N">
               <databind databound="1" table="" alias="Radio"></databind>
          </specific>
     </item>
     <item uid="Radio2" type="122" left="132" tab_order="0" width="160" top="106" height="14" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="1" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
     <AutoManagedAttribute></AutoManagedAttribute>
          <specific caption="Radio 2" AffectsFormMode="1" val_on="Y" val_off="N">
               <databind databound="1" table="" alias="Radio"></databind>
          </specific>
     </item>
</action>
<action type="group">
     <item uid="Radio1"></item>
     <item uid="Radio2"></item>
</action>
By code, when you create the form, include this:
oForm.Items.Item("Radio1").Specific.GroupWith ("Radio2")
Regards,
Vítor Vieira

Similar Messages

  • Problem with check box need an idea

    hello i need some help.
    i am tring to make a attendence register as an assignment. what i am tring to do is that i can add student name in a file and then retrive them from a file and then mark there presents or absents.the part i cant get done is how do i mark the attendence. i want to display name and then the teacher can just click in the check box infront of the name to mark the present and when he clicks on the save button it would save the attendence in the file.
    now the problem is the check box have to increase and decrease if a name is add or deleted in the file
    SO does any one have any ideas what i can do to solve this problem

    lets suppose your file contains student name which are seperted by comma or space (what ever).then u can read it and open stringtokenizer with delimater you used to seperate names.count the number of tokens and create your check box on the count of tokens.There may be some good idea too and if any one have i would like to know.

  • Vendor Master Upload Problem with Check Box

    Hi All,
    I have a problem with Vendor Master Upload program. In one of the screen of XK01 transaction depending upon the PO Box, Postal Code, Other City and Other Region i have to check the PO Box w/o no check Box. So in my program after i check the PO Box, Postal Code, Other City and Other Region values how to write a code that i can check the PO Box w/o no. Or other wise how can i send value to the Po Box w/o no check box. field
    Thanks in advance.

    The call to the first screen should look something like:
        perform dynpro
          tables bdcdata
          using:
         'X' 'SAPMF02K'     '0105',         "Create Vendor: Initial Screen
          ' ' 'RF02K-BUKRS'             'COCO',
          ' ' 'RF02K-KTOKK'             'YYYY',
          ' ' 'USE_ZAV'                 'X'.
    I'm using screen 105, not 100 here.
    Rob

  • Problem Using Check Box in a Report

    Hi all,
    I have a simple SQL report with a check box.The problem is when paginating forward and backward in the report(Next and Previous),The report region is refreshed and all the check boxes is reset to unchecked.
    P.S: I'm using APEX 4.0.
    Any Help will be appreciated,
    Ola

    Ola,
    If you search the forum, you will find lot of discussions on this issue..
    In nutshell, solution is -
    Case 1: If you have enabled partial refresh for your report ( pagination works through AJAX)
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, update/store all the checked check-boxes info in JS variable or array.
    c. Bind a JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on JS variable/array value(s) to pagination onClick event.
    Case 2: If you have not enabled partial refresh for your report
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, store the check-box status in any hidden_item and insert its value into session with dummy AJAX call.
    c. On page load call JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on hidden item value(s) .
    Hope it helps.
    Regards,
    Hari

  • Problem with Check box in WAD

    Hi ,
    I am creating a Check box in WAD which is a selection variable for a characteristic. I am able to get the display of all the values listed.
    Problem is : I want to have the list of values displayed with a check mark and I am not able to see where to make this setting in WAD.
    Any suggestions....
    Thanks

    Hello Raj
    Given the fact that you do not tell us the most important piece of information (namely whether you are using OO-based ALV or not) I assume you are using fm-based ALV lists.
    In this case you probably have defined a USER_COMMAND routine as described in the documentation of the fm.
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
    * define local data
      DATA: ls_outtab  LIKE LINE OF gt_outtab,
                ld_idx       TYPE i.
      LOOP AT gt_outtab INTO ls_outtab
                     WHERE ( chkbox = 'X' ).
        ld_idx = syst-tabix.
        " Call your update function / method / perform
       ls_outtab-chkbox = space.
       MODIFY gt_outtab FROM ls_outtab INDEX ld_Idx
          TRANSPORTING chkbox.
      ENDLOOP.
    " And now trigger refresh of the ALV display:
      rs_selfield-refresh = 'X'.  " <<< !!!
    ENDFORM.
    Regards
      Uwe

  • Problems with check boxes

    I am trying to create a process Register jsp. At first, i use normal jsp method
    try
    //get all the checkboxes values from here     
    //chkno is used only to retrieve the number of checked checkboxes
         String chkno[] = request.getParameterValues("hobbies");
    //using a while loop to retrieve the value + execute it to the database.
    int i = 0;
    int Rs2;
    String statement; //sql statement
    Statement SL2 = Conn.createStatement();
    while (chkno!=null && i < chkno.length)
    //get the specific array item
         String hobbies = request.getParameterValues("hobbies");
    //set up database related area
         try
              statement = "insert into memhobby values ('"+memid+"','"+hobbies+"')";
              Rs2 = SL2.executeUpdate(statement);
                   catch(Exception ex)
                   out.println(ex);
    //increment the i counter
              ++i;
    SL2.close();
    catch(Exception e){
    out.println(e);
    this one to retrieve check boxes values and insert into database. it works
    after that, i created javabean for connection. dbConnection, and dbHobby, which will make use of dbConnection and insert values into database.
    So, i use this method
    try
    //get all the checkboxes values from here     
    //chkno is used only to retrieve the number of checked checkboxes
         String chkno[] = request.getParameterValues("hobbies");
    //using a while loop to retrieve the value + execute it to the database.
    int i = 0;
    while (chkno!=null && i < chkno.length)
    //get the specific array item
         String listhobbies = request.getParameterValues("hobbies")[i];
         int hobbies = Integer.parseInt(listhobbies);
    //set up database related area
         try
              dbHobby.setHobbyMemId(memID);
              dbHobby.setHobbyHobbyId(hobbies);
              dbHobby.insertHobby();
                   catch(Exception ex)
                   out.println(ex);
    //increment the i counter
              ++i;
    catch(Exception e){
    out.println(e);
    it should works the same, but the problem now i having is, only the first check box values will be insert. the loop seem not to work anymore. why is that so?
    can anyone please help me?

    try to initialize all you variable first before parsing any value to it.
    eg:
    String hobby= "";
    hobby = request.getParameterValues("hobbies")!=null?request.getParameterValues("hobbies"):"";
    the nullPointerException due to your field("hobbies") is null and cannot set into String datatype.
    This may help.

  • Problem with check-box

    Hi all,
    I am using flash CS3 and working on flash and ActionScript
    3.0.
    In a flash application(.swf file), I have "3
    images"(converted to movieclips) in 3 different layers, "a
    combo-box"(which displays a specific image upon selection in the
    combo-box) and "a check-box".
    The Functionality of Combo-box is: If we select an image
    from combo-box,then a specific image is viewed on output upon
    selection. Now, if we click on the image appeared, then there
    appears a circle(dot) on the image at (evnt.localX,evnt.localY)
    pixel position [I had written ActinScript 3.0 code for this task].
    This occurs for all the 3 layers(i.e., on selection of the 3
    images).
    The Functionality of Check-box is: If check-box is
    "selected", it shows dots(circles) and if "not_selected" no dots
    are visible(It means, it hides the dots /circles) on the specific
    image.
    " I think you had understood that---- dots/circles placed on
    one image should not be visible when other image is viewed".
    If I change the selection of combo-boxes (i.e., image is
    changed) and when the check-box is selected, then it is showing all
    the dots(circles) of all three images. But, it should show only the
    specific dots(circles) that are obtained when clicked on specific
    image(i.e., specific selection from combo-box).
    Here, instances of our application are as follows(These all
    are Movie-Clip instances):
    Say, for 3 images: mc_image, mc_image2, mc_image3.
    for combo-box: mc_Combobox.
    for check-box: mc_Checkox.
    Here, the functionality of Check-box is what i need. When we
    select the check-box,It must show only the
    dots/circles that are related to the image which is selected
    from combo-box.
    How to do this?
    I am new to flash and ActionScript 3.0. Please help me....
    Thanks in advance.
    Text

    Hi Srihari.Ch,
    I dont know how it should work for only one circle and not
    for others??
    because as per my understanding each time a circle is drawn
    the same code is going to execute so how can it skip the condition
    in the if block for second time onwards.....
    Let me know if there is an understanding gap in your code and
    me...
    Also as a second thaught you can attach the event listener
    for the MouseEvent.CLICK
    only when the check box is clicked... you can track this by
    using a change event for checkboxes
    so your code will be
    myCheckBox.addEventListener(Event.CHANGE, addClickEvent);
    function addClickEvent(evnt:Event)
    //here check and attach mouse event listener for click event.
    if(evnt.target.selected)
    //Consider that myImageHolderMovieClip is the movieclip where
    you //have loaded an Image
    myImageHolderMovieClip.addEventListener(MouseEvent.CLICK,
    drawAcircle);
    else
    myImageHolderMovieClip.removeEventListener(MouseEvent.CLICK,
    drawAcircle);
    Also if this doesn't solve your problem please send me your
    code [fla and AS3 files] on my mail ID [email protected] i
    will try and give the reply as soon as possible.

  • Problem with check Box in ALV list

    Hi All,
    In my alv list  I am using Check box and if I enabled the check box after pressing that pushbutton its not reflecting in the internal table how can I  resolve it. 
    Please find below the piece of codes
    FORM user_command USING ucomm    LIKE sy-ucomm
                                                 selfield TYPE slis_selfield.      
    sy-ucomm = ucomm.
      CASE ucomm.
      When 'SAVE'.
                I am checking my internal table value here.
               my logic....
      When others.
      Endcase.
    FORM FIELD_CATLOGUE  USING   VALUE(P_tname) "Int.table name
                                  VALUE(P_fname) "Field name
                                  VALUE(P_title) "Column name
                                  VALUE(P_sum)   "Sum
                                  VALUE(P_edit)  "Edit
                                  VALUE(P_Check). " Check box
      CLEAR wa_fcat.
      wa_fcat-tabname = p_tname.
      wa_fcat-fieldname = p_fname.
      wa_fcat-seltext_l = p_title.
      wa_fcat-do_sum    = P_Sum.
      Wa_Fcat-edit      = P_Edit.
      Wa_Fcat-checkbox  = P_Check.
      Append wa_fcat to i_fcat.
      gs_user_command     type slis_formname value 'USER_COMMAND'.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = sy-repid
            it_fieldcat        = i_fcat
            is_layout          = ilay
            I_DEFAULT          = 'X'
            I_SAVE             = 'A'
            I_CALLBACK_PF_STATUS_SET  = gs_user_status
            i_callback_user_command  = gs_user_command
          TABLES
            t_outtab           = it_data
          EXCEPTIONS
            program_error      = 1
            others             = 2.

    Hi,
    Refer this program:-
    *  internal table and alv declarations
    *   with one field in internal table as
    *   flag(1) type c (for checkbox in alv)
    *          START-OF-SELECTION
    START-OF-SELECTION.
      "your select query to populate data in internal table
    *          END-OF-SELECTION
    END-OF-SELECTION.
    *          FIELD CATALOG FOR FIRST GRID DISPLAY
      PERFORM field_catalog.
    *          SORT W.R.T. WORK ORDER NUMBER FOR FIRST GRID DISPLAY
      PERFORM sort_field.
    *          FOR LAYOUT FOR FIRST GRID DISPLAY
      PERFORM set_layout.
    *          DISPLAY RECORDS IN ALV GRID FOR FIRST GRID DISPLAY
      PERFORM alv_display.
    *&      SUBROUTINE DEFINITIONS
    *&      Form  FIELD_CATALOG
    *       SUB-ROUTINE FIELD_CATALOG USED TO SET THE COLUMNS FOR
    *       THE ALV GRID (OUTPUT FORMAT)
    *       SETS THE COLUMN NAME AND THE OUTPUT LENGTH FOR THE FIELDS
    FORM field_catalog .
      wa_field-fieldname = 'FLAG'.   " name of field from internal table
      wa_field-tabname = 'IT_FINAL'. " internal table name
      wa_field-outputlen = 2.        " output length on screen
      wa_field-checkbox = c_check.   " print as checkbox
      wa_field-edit = c_check.       " make field open for input
      wa_field-seltext_l = ' '.      " header information
      APPEND wa_field TO it_field.   " append field catalog internal table
      CLEAR wa_field.                " clear field catalog work area
      wa_field-fieldname = 'AUFNR'.  " name of field from internal table
      wa_field-tabname = 'IT_FINAL'. " internal table name
      wa_field-outputlen = 20.       " output length on screen
      wa_field-seltext_l = text-003. " header information
      APPEND wa_field TO it_field.   " append field catalog internal table
      CLEAR wa_field.                " clear field catalog work area
    ENDFORM.                    " FIELD_CATALOG
    *&      Form  SORT_FIELD
    *       SUB-ROUTINE SORT_FIELD IS USED TO SORT THE RECORDS IN THE
    *       INTERNAL TABLE BASED ON THE GIVEN FIELD AND NATURE OF
    *       SORTING TO BE DONE (ASCENDING OR DESCENDING)
    FORM sort_field .
      wa_sort-spos = 1.             " sort priority
      wa_sort-fieldname = 'AUFNR'.  " field on which records sorted
      wa_sort-tabname = 'IT_FINAL'. " internal table name
      wa_sort-up = c_check.         " sort ascending
      APPEND wa_sort TO it_sort.    " append sort info internal table
      CLEAR wa_sort.                " clear sort info work area
    ENDFORM.                    " SORT_FIELD
    *&      Form  SET_LAYOUT
    *       SUB-ROUTINE SET_LAYOUT IS USED TO SET THE DISPLAY OF THE
    *       ALV GRID LINES IN ALTERNATIVE COLOURS
    FORM set_layout .
      wa_layout-zebra = c_check.    " so set colors of line alternatively
    ENDFORM.                    " SET_LAYOUT
    *&      Form  ALV_DISPLAY
    *       SUB-ROUTINE ALV_DISPLAY IS USED TO SET THE PARAMETERS
    *       FOR THE FUNCTION MODULE REUSE_ALV_GRID_DISPLAY
    *       AND PASS THE INTERNAL TABLE EXISTING THE RECORDS TO BE
    *       DISPLAYED IN THE GRID FORMAT
    FORM alv_display .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_rep_id       " report id
         i_callback_pf_status_set          = 'PF'           " for PF-STATUS
         i_callback_user_command           = 'USER_COMMAND' " for User-Command
         is_layout                         = wa_layout      " for layout
         it_fieldcat                       = it_field       " field catalog
         it_sort                           = it_sort        " sort info
        TABLES
          t_outtab                          = it_final      " internal table
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  pf
    *       SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
    *       ON WHICH THE ALV GRID IS DISPLAYED
    *       -->RT_EXTAB
    FORM pf USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZTG_STAT'.
    ENDFORM.                    "pf
    *&      Form  USER_COMMAND
    *       SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
    *       AND EXECUTE THE APPROPIATE CODE
    *      -->LV_OKCODE   used to capture the function code
    *                     of the user-defined push-buttons
    *      -->L_SELFIELD   text
    FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
    * assign the function code to variable v_okcode
      lv_okcode = sy-ucomm.
    * handle the code execution based on the function code encountered
      CASE lv_okcode.
    * when the function code is EXECUTE then process the selected records
        WHEN 'EXECUTE'.
    * refresh it_process when user processes selected records
          REFRESH it_process.
    * to reflect the data changed into internal table
          DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
          IF ref_grid IS INITIAL.
            CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
              IMPORTING
                e_grid = ref_grid.
          ENDIF.
          IF NOT ref_grid IS INITIAL.
            CALL METHOD ref_grid->check_changed_data.
          ENDIF.
    * refresh the ALV Grid output from internal table
          l_selfield-refresh = c_check.
        WHEN 'SEL_ALL'.
    * to select all the records displayed in ALV Grid
          LOOP AT it_final INTO wa_final.
            wa_final-flag = 'X'.
            MODIFY it_final FROM wa_final.
          ENDLOOP.
    * refresh the ALV Grid output from internal table
          l_selfield-refresh = c_check.
        WHEN 'DESEL_ALL'.
    * to deselect all the records displayed in ALV Grid
          LOOP AT it_final INTO wa_final.
            wa_final-flag = ' '.
            MODIFY it_final FROM wa_final.
          ENDLOOP.
    * refresh the ALV Grid output from internal table
          l_selfield-refresh = c_check.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    Hope this helps you.
    Regards,
    Tarun.

  • Problem with check box in ALV Grid Display

    I am Displaying Material Master Data in ALV Grid Display with Check Box for each record and if i checked check box then i am processing Update operation in Database,  my question is after perform update operation check box should be clear.
    Kindly help me!!!!

    Hello Raj
    Given the fact that you do not tell us the most important piece of information (namely whether you are using OO-based ALV or not) I assume you are using fm-based ALV lists.
    In this case you probably have defined a USER_COMMAND routine as described in the documentation of the fm.
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
    * define local data
      DATA: ls_outtab  LIKE LINE OF gt_outtab,
                ld_idx       TYPE i.
      LOOP AT gt_outtab INTO ls_outtab
                     WHERE ( chkbox = 'X' ).
        ld_idx = syst-tabix.
        " Call your update function / method / perform
       ls_outtab-chkbox = space.
       MODIFY gt_outtab FROM ls_outtab INDEX ld_Idx
          TRANSPORTING chkbox.
      ENDLOOP.
    " And now trigger refresh of the ALV display:
      rs_selfield-refresh = 'X'.  " <<< !!!
    ENDFORM.
    Regards
      Uwe

  • Problem in check box validation

    Hi All
    I have designed a form in screen painter which contains the employee details.
    I have kept two check boxes MALE and FEMALE with itemuid as chmale and chfemale.
    I wont to do some validation.
    It is check box so I can check both of them,so I need to do validation
    My code
    Case SAPbouiCOM.BoEventTypes.et_CLICK
                                    Try
                                        Select Case pVal.ItemUID
                                            Case "chmale"
                                                oCheckFemale = oForm.Items.Item("chfemale").Specific
                                                If oCheckFemale.Checked = True Then
                                                    oCheckMale.Checked = True
                                                    oCheckFemale.Checked = False
                                                End If
                                            Case "chfemale"
                                                oCheckMale = oForm.Items.Item("chmale").Specific
                                                If oCheckMale.Checked = True Then
                                                   oCheckMale.Checked = False
                                                    oCheckFemale.Checked = True
                                                End If
                                        End Select
    This is not working.
    SAP hangs up for some time.

    Hi,
    You are missing with BubbleEvent=true;
    Below is My Code in C# and its working perfactly for the same requirement as yours.
    I have Done it on ItemClick BeforeAction
    oCheckBox1 = (SAPbouiCOM.CheckBox)oForm.Items.Item("4").Specific;
                    oCheckBox2 = (SAPbouiCOM.CheckBox)oForm.Items.Item("5").Specific;
                    if (pVal.ItemUID == "4" && oCheckBox1.Checked == false)
                        oCheckBox2.Checked = false;
                    if (pVal.ItemUID == "5" && oCheckBox2.Checked == false)
                        if (oCheckBox1.Checked == true)
                            oCheckBox1.Checked = false;

  • Problem getting check boxes and radio button to click with applescript

    This is my script, it runs through without error, i can see the check box lightly flash like its being focused in on, but it wont actually check mark the box. it does this with all my check boxes and radio buttons.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12
    key code 125
    key code 125
    key code 124
    key code 125
    key code 125
    key code 36
    delay 1
    end tell
    tell window "Variable Links"
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell

    Hi craneium and welcome
    For me this script fails, going through it step by step it seems confused, as I have highlighted out in the below code.
    where is the window "Variable Links, may be I can help.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12 --opens spotlight search in help
    key code 125 -- highlights indesign help
    key code 125 -- highlights welcome screen
    key code 124 -- goes to apple
    key code 125 -- goes to about this computer
    key code 125 -- highlights software update
    key code 36 -- starts software update
    delay 1 -- ?
    end tell
    tell window "Variable Links" -- error cant get window variable links
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell
    Budgie

  • I am having a problem with check boxes showing as all selected after downloading as a pdf after individual submits their form with just a few actually selected.

    The forms themselves don't have all the boxes checked when viewed in FormsCentral. It is only after I download it as a pdf that the problem occurs. I have to check and uncheck each box in the FormsCentral in order to not have that occur. Any suggestions?

    Hi sdwinter,
    Please help us with the step by step workflow to replicate the issue for better assistance on this.
    Thanks,
    Vikrantt Singh

  • Check box selection

    Hi
    I have a problem with check box selection.I query from the database and based on the output from the query i prepopulate the check box with a tick mark.But when the user goes again and deselects one of the check box that was ticked and submits the form , it also includes the unchecked box.the following is the code I have.
    <%
    if (itemStr == 00 ){
    %>
    <td align="center">
    <input type="checkbox" name="build">
    </td>
    <% }
    else{ %>
    <td align="center">
    <input type="checkbox" name="build1" checked >
    </td>
    Then in my form I do
    String[] ar = request.getParameterValues("build1");
    how do i ensure if the user unselects from build1 , it doesnt add that item.
    Help Needed
    Arn

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Check Box data NOT been collected consistently by Acrobat XI Pro

    Hi folks
    I'm having a real problem with Check Box data not being processed consistently by Acrobat XI Pro. 
    I've got 140 response forms back - and have processed them in one batch or smaller batches of 50 forms.  I can see the various check boxes ticked in the pdf view but on some forms that data does not get exported to the csv or xls.   For other forms it works fine. 
    I've tried various exports, even opening one returned pdf form and exporting that alone.  All with the same result.
    I'm at a loss to the problem. 
    The original form is at:
    http://www.orchardrevival.org.uk/wp-content/uploads/2014/02/Orchard-Inventory-Survey-form- v2-superceded.pdf
    Any pointers would be very welcome. 
    thanks
    Crispin

    Thanks for that George. 
    Corruption:  If the file is corrupted, do you know why Acrobat doesn’t report this?  There was no indication of an error in this respect. 
    Method: I have followed your suggestion. Opened ‘BORD0008checkboxissue.pdf’ in Acrobat ProXI.  Export as .fdf.  Close all files.
    Open a blank form in Acrobat Pro XI.  Import the fdf file. 
    Result;  The newly filled form is still missing checkbox data.  Result file at http://www.orchardrevival.org.uk/?p=798
    [ I also exported as xfdf and xml and csv, and looked at these files in a text editor. Neither had the correct checkbox data exported.  Therefore I think it is clear that Acrobat Pro XI is not exporting checkbox data for this file to any format]
    Does that shed any more light on what might be the problem ?
    thanks
    Crispin
    Background to document:  An outline form was created on Word Mac 2008, and then a pdf generated with the Save As pdf in the Word dialogue (which I think may have been an Mac OS based generator). 
    Then the fillable form was created complete with all 143 fields in Acrobat Pro 8.  Then distributed by email.  So despite the fillable form being created in Acrobat Pro, the PDF Producer is reported as Mac OSX 10.n.n Quartz PDFContext for all forms.  However some of them work, some don’t. Obviously I do not have control over how the forms are filled out there in the wild – even though I’ve asked folk to use Adobe Reader.
    I’ve tried processing results with both Acrobat Pro 8 and XI with similar inconsistent results. (a further interesting issue is that the filename stated in the record is incorrect for that record)

  • When working with check box control goes to " MODULE (PBO) %_CTL_INIT "

    Hi All,
    I have a problem regarding check box.
    I have  a global itab and the itab is having some data. so now the iatb data i'm able to use in my module. When i'm writing code for my check box as below
    types : begin of t_ itab1 ,
            field type DB-FIELD,
            end of itab1.
    data : lt_itab1 TYPE TABLE OF t_itab1 WITH HEADER LINE.
    DATA : USER1 TYPE C.
    module USER_COMMAND_0300 input.
      case sy-ucomm.
      WHEN 'USER'.
    *IF USER1 = 'X'.
       LOOP AT itab.<-----global table
       SELECT field FROM DBtab INTO TABLE lt_itab1 WHERE field =
       itab-field.
       ENDLOOP.
    *ENDIF.
       when 'CAN'.
        LEAVE TO SCREEN 0.
         ENDCASE.
    endmodule.                 " USER_COMMAND_0300  INPUT
    This is my code.
    now when i'm debugging it when the cursur is at loop at statement i'm pressing F5 cursur is not going in to the select statement. it going into " MODULE (PBO) %_CTL_INIT " .
    method GET_CURRENT_DYNPRO.
    Can anybody tell me what is wrong in that? i should get the data in to lt_itab1.
    Thanks
    g.s.naidu

    Hi,
    Set one flag variable in itab of the table control and set taht flag = 'X whn you save the selected record into the ztable.Then In PBO, do like this.
    PROCESS BEFORE OUTPUT.
      LOOP AT   it_t001l INTO x_t001l   WITH CONTROL tc CURSOR tc-current_line.
        MODULE tc_get_lines.
      ENDLOOP.
    MODULE tc_get_lines OUTPUT.
    IF  x_t001l-flag = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'X_T001L-SEL'.
                  screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                    "TC_GET_LINES OUTPUT
    *---->In PAI, For saving
    MODULE user_command_9002 INPUT.
    CASE ok_9002.
    WHEN 'SAVE'.
    loop at it_marc into x_marc where sel = 'X'.
    <Modify the zable>.
    <b>x_marc-flag = 'X'.
    modify it_marc from x_marc transporting flag.</b>
    Endloop.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_9002 INPUT "TC2_MODIFY INPUT
    Message was edited by:
            Vigneswaran S

Maybe you are looking for

  • USB Port over current

    I am getting an error message every 15 seconds that tells me: A USB device is currently drawing too much power. The hub to which it is attached will be deactivated. It gives me the option to say OK, and I say OK, but the message keeps popping up. If

  • Connect mac and pc to DSL

    My Mac is using Verizon DSL now, I just added a Window XP, I am wandering how to connect both Mac and PC to DSL? I heard about "Panther Internet Sharing", could anyone tell me what is about, and how does it work? Thanks!!

  • How to pass a Vector as a Query String to a URL

    is there a way to pass a vector as a query string in a URL in Java. If so how? thanks in advance

  • Ubuntu上でDAQmxBaseのlsdaqが認識しない

    お世話になります. USB-6501をDAQmxBase 3.4.0で使用しています. サポート外なのは承知していますが.ubuntu 9.04, kernel 2.6.28-19-genericで動作させようとしています. installは何とかできて.dio-sample(readDigPort.cのみ)のmakeもでき.起動させてもエラーは出ないのですが. 実行させると. Data read: 0xB770C2A0 の様な形で.ポートのデータが読めていないようです.(スイッチを付けても変化

  • How to enable rsh/telnet/rlogin

    Hi Followed the instructions at: http://docs.info.apple.com/article.html?artnum=106274 to enable rsh/telnet/rlogin services, and restarted the machine (MacBook Pro, OS X 1.4, Darwin Kernel Version 8.6.1). Still I can't remotely do telnet/rsh/rlogin t