How to Controll Dynamic Checkbox Groups

i want to create checkbox groups dynamically. Each group will have at least one child checkbox. if i select parent check box all child checkboxes should be checked.if i uncheck parent checkbox all child checkboxes should be unchecked.
that check box group name also coming dynamically. i am trying to pass group name dynamically but it's not recognizing that name in javascript.
pls help me on this how to controll dynamic checkbox groups.

recognizing that name in javascript.Are you dynamically creating checkboxes with JSP?

Similar Messages

  • How can I dynamically change group field column?

    Hello!
    I need to group data and create group totals for that table. Is
    it possible to dynamically change group field column for
    specific table, depending on data retreived from parameter form?
    Thanks,
    Mario.

    quote:
    Originally posted by:
    ljonny18
    Hi,
    I am using a grid within a component in my Flex application.
    I have an XML dataProvider, and I want to change the row
    colour of my Grid depending on a value coming form my dataProvider
    – but I cant seem to get this to work :(
    can anyone help / advise me on how I can dynamically change the
    colour of my grid row depending on a value coming from my XML
    DataProvider????
    Thanks,
    Jon.
    Hi,
    a few hours ago I stumbled across this cookbook entry - it
    didn't solve MY problem, but maybe it provides a way to solve your
    problem?
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
    From the article:
    quote:
    Changing the background color of a DataGrid cell is not as
    simple as changing some style because the default renderer for a
    DataGrid cell does not have a backgroundColor. Therefore, to do
    this simple task, you have to create a custom itemRenderer where
    you draw your own background in the updateDisplayList function.
    HTH
    Uwe

  • How to Create Dynamic RadioButton Group by Index

    Hi to all,
                 I would like to create an Questionaire.For that, I have created one Text View & Radio button Group by index at design time. which will fetch the values(ie Values are Questions & Ans options ) from R/3. since I need to fetch N number of values which must be mapped with Multiple Text views & Radio Button Groups i want to create Text view & Radio button Group by index UI Elements dynamically.How to do that?
    Please bring me an solution to this problem.
    Thanks in advance.
    Regards,
    Malar.

    Hi Murtuza,
                        Thanks for ur solution...
    anyway again i got an same error. Option button not enabled...
    so i have created a dynamic context node & map it with the RadioButton Group by Index...Now it s working fine...
    if(firstTime){
           //Test2Node.invalidate();
              for(int i=0;i<wdContext.nodeQuestions().size();i++)
                        IWDNodeInfo nodeinfo=wdContext.getNodeInfo();
                        /* This will add a ValueNode */
                        IWDNodeInfo customerNode=nodeinfo.addChild("Questionaire"+i,null,true,true,true,false,false,true,null,null,null);
                        /* This will add a Attribute to the above Node */
                        IWDAttributeInfo custAttr=customerNode.addAttribute("Quest"+i,"com.sap.dictionary.string");
                        IWDAttributeInfo custAttr1=customerNode.addAttribute("Options"+i,"com.sap.dictionary.string");
                        IWDNode NodeQuest = wdContext.getChildNode("Questionaire"+i,0);
                        NodeQuest.getCurrentElement().setAttributeValue("Quest"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
              //     NodeQuest.getCurrentElement().setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
                   IWDTransparentContainer tc = (IWDTransparentContainer)view.getElement("TransparentContainer");
                        IWDTextView tv =(IWDTextView) view.createElement(IWDTextView.class,"MyTextView1"+i);
                      tv.setText(wdContext.nodeQuestions().getQuestionsElementAt(i).getQues());
                      tc.addChild(tv);
                     IWDNodeElement NodeElt= NodeQuest.createElement();
                     NodeElt.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionA());
                  NodeQuest.addElement(NodeElt);
                   IWDNodeElement NodeElt1= NodeQuest.createElement();
                                   NodeElt1.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionB());
                                   NodeQuest.addElement(NodeElt1);
                   IWDNodeElement NodeElt2= NodeQuest.createElement();
                                   NodeElt2.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionC());
                                   NodeQuest.addElement(NodeElt2);
                   IWDNodeElement NodeElt3= NodeQuest.createElement();
                                                  NodeElt3.setAttributeValue("Options"+i,wdContext.nodeQuestions().getQuestionsElementAt(i).getOptionD());
                                                  NodeQuest.addElement(NodeElt3);
                   IWDRadioButtonGroupByIndex rbg = (IWDRadioButtonGroupByIndex)view.createElement(IWDRadioButtonGroupByIndex.class,"RBG1"+i);
                             rbg.bindTexts("Questionaire"i".Options"+i);     
                             //IWDRadioButton rb = (IWDRadioButton)view.createElement(IWDRadioButton.class,"RBG1"+Iter);
                             //rb.bindText("Test2.RadioTest");          
                                tc.addChild(rbg);
                 This s the code....
    Thank you. anyway
    Regards,
    Thenmalar

  • How to bind dynamic checkbox to a table

    Hi,
    I have a table that holds many fields. I put these fields on the screen dynamically.
    I would like to bind a checkbox to select a field row.
    I tried to bind the checkbox to the table but with no success. I keep getting the binding to the first element.
    Does anyone has an example?
    Thanks,
    Itay

    Hi P,
    here is my code:
      LOOP AT lt_available_items ASSIGNING <item>.
        ADD 1 TO lv_col.
        IF lv_col > lv_cell_per_col.
          lv_col = 1.
          ADD 1 TO lv_row.
          lv_new_line = 'X'.
        ENDIF.
    *   Add dynamic group
        CONCATENATE 'GROUP_' lv_col '_' lv_row INTO lv_str.
        lr_new_group = cl_wd_group=>new_group( id = lv_str view = view design = '02' ).
        IF lv_new_line = 'X'.
          CLEAR lv_new_line.
          cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_group ).
        ELSE.
          cl_wd_matrix_data=>new_matrix_data( element = lr_new_group ).
        ENDIF.
        lr_new_group->set_width( '230' ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_group ).
        lr_group->add_child( lr_new_group ).
    *   Left side container
        CONCATENATE 'CONT_L_' lv_col '_' lv_row INTO lv_str.
        lr_new_container = cl_wd_transparent_container=>new_transparent_container(
              id = lv_str view = view ).
        cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_container ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_container ).
        lr_new_group->add_child( lr_new_container ).
    *   Add checkbox
        CONCATENATE 'CHK_' lv_col '_' lv_row INTO lv_str.
        lr_checkbox = cl_wd_checkbox=>new_checkbox( view   = view
                                                    id     = lv_str ).
        lr_matrix_head = cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_checkbox ).
        lr_checkbox->set_layout_data( lr_matrix_head ).
        lr_checkbox->bind_checked( 'AVAILBLE_ITEMS.SELECTED' ).
        lr_new_container->add_child( lr_checkbox ).
    endloop.
    my node is AVAILABLE_ITEMS and it has the attributes: SELECTED, MATNR, MAKTX...
    thanks,
    Itay

  • How to create dynamic break groups?

    Hi,
    The report I'm trying to create contains several hierachies which translate into break groups. The number of hierachies and break groups displayed will depend on user parameter. The report could look like this:
    ---Report 1
    Store Total :AAAAAA
    Division Total :BBBB
    Department CCCCC
    ---Report 2
    Store Total :AAAAAA
    Division Total : BBBB
    Department Total :CCCCC
    Class DDDDD
    ---Report 3
    Store Total :AAAAAA
    Division Total : BBBB
    Department Total :CCCCC
    Class Total DDDDD
    Subclass EEEEE
    I read that lexical reference can only be used if the number of columns returned and the datatypes are the same but the number of columns returned by my report varies (depending on user's choice). I tried using Filter on the breakgroups but found that this will affect the Total figures. Any kind of help will be appreciated, thank you.

    Is the Class in Report2 the same as Class Total in Report3? In this case just create report with maximum possible number of groups, and then conditionally suppress frames of those groups not needed for current report. Labels for totals can also be adjusted dynamically.

  • How to Create dynamic checkbox in line item

    Dear all,
            In selection-screen i have using select-options  If i select select-option range, the output  will display dynamic check box in line item what range i have select above select options.
    Regards,
    Baskaran.

    Hi,
    After fetching data into table, find the number of internal table entries using Describe statement.
    Then, use Do loop till w_count becomes w_lines( no. of entries ) incrementing the count for every item.

  • How to control dynamically created symbols

    Hi, I'm new in edge but thanks to adobe forum that helped me a lot.
    I'm trying to use ".createChildSymbol" to bring my symbols from the library to my stage. And in each symbol I have an OUT label, so every time a new symbol is called by a particular button, the last one plays from OUT label and new one appears at the same place.
    It's all easy for two symbols and I do not need to set any vaiable for them. But I have almost 180 symbols, and a menu of buttons to call them, so every button needs to play the OUT label of the current symbol and also plays the new one and make it as the current one.
    I would be truly thankful if someone help me to fix this problem.
    sym.test = sym.createChildSymbol("test", "Stage");
    sym.getComposition().getStage().setVariable("current", "test");
    var current = sym.getComposition().getStage().setVariable("current");
    sym.current.getSymbolElement().css({position:'absolute', display:'inline-block', top:167, left:91});

    Ok, lets take a look at the code. I've changed the symbol names so it becomes a little more friendly.
    So, I have an array of 4 animations ("animation1",  "animation2",  "animation3",  "animation4") and an array of 4 buttons ("button1",  "button2",  "button3",  "button4"). The names of the symbol instances are the things you have to change.
    This is the code that goes inside Stage/compositionReady
    var current_animation = null; // Index in array_options: 0=a, 1=b, 2=c, 3=d
    var current_animation = null; // Index in array_options: 0=a, 1=b, 2=c, 3=d
    var request_animation = null; // Index in array_options: 0=a, 1=b, 2=c, 3=d
    var array_animation = ["animation1", "animation2", "animation3", "animation4"];
    var array_buttons = ["button1", "button2", "button3", "button4"];
    // Called by timeline.complete/location event inside each Animation
    sym.playRequest_animation = function(){
      sym.getSymbol("animationContainer").getSymbol(array_animation[request_animation]).play('lead_in');
      current_animation = request_animation;
    // Called on button click
    sym.btnClick_animation = function(request_myAnimation) {
      request_animation = request_myAnimation;
      if(current_animation != null){
        sym.getSymbol("animationContainer").getSymbol(array_animation[current_animation]).play('lead_out');
        sym.getSymbol(array_buttons[current_animation]).play('option_exit');
      else{
        sym.playRequest_animation();
    This bit of code goes at the trigger "click" inside all buttons:
    sym.getComposition().getStage().btnClick_animation(0); // 0 index of array = a —> button1
    sym.getComposition().getStage().btnClick_animation(1); // 1 index of array = b —> button2
    sym.getComposition().getStage().btnClick_animation(2); // 2 index of array = c —> button3
    sym.getComposition().getStage().btnClick_animation(3); // 3 index of array = d —> button4
    There's also this code that enables the page, upon load, to open the first animation, therefore animating the first button (and disabling it) - it's located at the trigger "section_lead_in" wich only exists inside button1:
    sym.getComposition().getStage().btnClick_animation(0); // 0 index of array = a
    Finally, this block of code goes inside all animations and are located at 2000ms - during the process where the active animation as almost left the scene:
    sym.getComposition().getStage().playRequest_animation();
    Notice that, for the sake of organization, I have all my animations inside a symbol called "animation_Container".
    Again, if you want, I can give you a hand with your files. Just post it.
    Download the file again for an updated version.
    P.S. I hope I didn't forget anything...

  • Dynamically update grouping of store items - Sencha Touch

    how can I dynamically update grouping of store items? Please help

    Please follow the steps:
    set gouper again,
    store.setGrouper({
        groupFn : function(record) {
            return record.get('fieldname');
    Gracie

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

  • How can I get values from a checkbox group?

    I have been developing a web application with Creator EA 2 and am trying to finish all the functionality before switching to 2. The last thing I have to do is pick up the status of checkboxes that I put in the page with the checkbox group component. Getting stuff from other fields is easy in the code for the page with a statement like: this.fieldname.getText() or ...getValue(). When you enter a line like this, Creator is helpful and gives you the completion choices. I tried some for the checkbox group, but none seem to give me what I want. What I want is the status ( true or false, 0 or 1, ...) for each checkbox in the group. I would appreciate advice on a simple way to get this. Thanks.

    You do not necessarily need to bind selected to an array. You might do that if you want to put the array in a session bean, but otherwise, the binding isn't necessary.
    Earlier, I provided a link to the Delving into Components tutorials. Here is an excerpt:
    "For the items property, you specify a display label and a return value. The selected value returns an array of objects of the same type as the return values. If you use a Default Options component to specify the items and return values, selected returns an array of String objects.
    The values in the selected array match the return values of the selected checkboxes."
    To illustrate, here is how to get the selected values without binding to an array. In this example, the id for the drop-down list is dropdown1.
        public void prerender() {
            if (checkboxGroup1.getSelected() != null) {
                String str="You selected ";
                String[] userSelections = (String[]) checkboxGroup1.getSelected();
                for (int i=0; i < userSelections.length; i++) {
                    str+= userSelections[i] + " ";
                staticText1.setText(str);
        }Hope this helps,
    Chris

  • How to add a checkbox to dynamic itab  so that i can select some records

    How to add a checkbox to dynamic itab  so that i can select some records in the alv and can display them in another alv using a button
    I have requirement where i have to display the dynamic itab records in an alv ....Some records from this alv output has to be selected through checkbox  provided in the first column .( I will get to know the structure of the itab only at runtime ,so iam using dynamic itab)

    Hi,
       I tried and finally i got it , Just try for it.
    type-pools : slis.
    PARAMETERS : p_tab type dd02l-tabname.
    data : ref_tabletype  type REF TO cl_abap_tabledescr,
           ref_rowtype TYPE REF TO cl_abap_structdescr.
    field-symbols  : <lt_table>  type   standard TABLE ,
           <fwa> type any,
           <field> type abap_compdescr.
    data : lt_fcat type lvc_t_fcat,
           ls_fcat type lvc_s_fcat,
           lt_fldcat type SLIS_T_FIELDCAT_ALV,
           ls_fldcat like line of lt_fldcat.
    data : ref_data type REF TO data,
            ref_wa type ref to  data.
    ref_rowtype ?= cl_abap_typedescr=>DESCRIBE_BY_name( p_name = p_tab ).
    TRY.
    CALL METHOD cl_abap_tabledescr=>create
      EXPORTING
        p_line_type  = ref_rowtype
      receiving
        p_result     = ref_tabletype.
    CATCH cx_sy_table_creation .
    write : / 'Object Not Found'.
    ENDTRY.
    *creating object.
    create data ref_data type handle ref_tabletype.
    create data ref_wa type handle ref_rowtype.
    *value assignment.
    ASSIGN ref_data->* to <lt_table>.
    assign ref_wa->* to <fwa>.
    loop at ref_rowtype->components ASSIGNING <field>.
      ls_fcat-fieldname = <field>-name.
      ls_fcat-ref_table = p_tab.
      append ls_fcat to lt_fcat.
    if lt_fldcat[] is  INITIAL.
        ls_fldcat-fieldname = 'CHECKBOX'.
        ls_fldcat-checkbox = 'X'.
        ls_fldcat-edit = 'X'.
        ls_fldcat-seltext_m = 'Checkbox'.
        append ls_fldcat to lt_fldcat.
      endif.
      clear ls_fldcat.
      ls_fldcat-fieldname = <field>-name.
      ls_fldcat-ref_tabname = p_tab.
      append ls_fldcat to lt_fldcat.
    endloop.
    loop at lt_fldcat into ls_fldcat.
      if sy-tabix = 1.
        ls_fldcat-checkbox = 'X'.
        ls_fldcat-edit = 'X'.
    modify lt_fldcat FROM ls_fldcat
        TRANSPORTING checkbox edit.
    endif.
    endloop.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog           = lt_fcat[]
      IMPORTING
        ep_table                  = ref_data.
    assign ref_data->* to <lt_table>.
    select * FROM (p_tab) into table <lt_table>.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       IT_FIELDCAT                       = lt_fldcat[]
      TABLES
        t_outtab                          = <lt_table>.
    Thanks & Regards,
    Raghunadh .K

  • How to handle multiple selection in the Spark List control with checkbox as itemrenderer?

    Hi All,
    I am using checkbox as an ItemRenderer in spark list.
    I have a query.
    how to handle multiple selection in the Spark List control with checkbox as itemrenderer?
    how to retrieve the selected item label?
    Thank you in advance.

    Hi there, I'll tweak your code a little bit to something like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical">
        <mx:Script>
            <![CDATA[
                 import mx.events.ListEvent;
                 import mx.controls.CheckBox;
               [Bindable]
               private var mySelectedIndexes:ArrayCollection=new ArrayCollection();
                private function onChange(e:ListEvent):void
                   if(CheckBox(e.itemRenderer).selected){
                             mySelectedIndexes.addItem(e.rowIndex);
                   }else{
                                  mySelectedIndexes.removeItemAt(mySelectedIndexes.getItemIndex(e.rowIndex));     
                   chkList.selectedIndices=mySelectedIndexes.toArray();
            ]]>
        </mx:Script>
    <mx:ArrayCollection id="collection">
            <mx:Object label="Test A"/>
            <mx:Object label="Test B"/>
            <mx:Object label="Test C"/>
            <mx:Object label="Test D"/>
            <mx:Object label="Test E"/>
            <mx:Object label="Test F"/>
            <mx:Object label="Test G"/>
        </mx:ArrayCollection>
    <mx:List id="chkList" dataProvider="{collection}" itemRenderer="mx.controls.CheckBox"  itemClick="onChange(event);" allowMultipleSelection="true"/>
    </mx:Application>

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How to generate controls dynamically based on value stored in database using mvc4?

    In my database, i have a field called control_ids corresponding to  text box, dropdownlist, radiobuttonlist etc. My goal is to
    create controls dynamically based on value of control_id-field in table. Anybody please help me how to create the controls dynamically in MVC 4 for this scenario.

    In your view you could do something like that:
    foreach (var field in Model.FormStruture.fields)
    <div class="editor-label">
    <label for="@field.Name">@field.Descricao</label>
    </div>
    <div class="editor-field">
    <input class="text-box single-line" id="@field.Name" name="@field.Name" type="text" value="@field.Valor" data-rules-required="@field.Mandatory.ToString().ToLower()" data-rule-number="@field.Tipo.Equals(SiB.OCR.Documentos.Modelo.TipofieldDocumento.Numerico).ToString().ToLower()" title="@field.Descricao" />
    </div>
    if (!String.IsNullOrEmpty(field.Format))
    @:<script type="text/javascript">$("[email protected]").mask("@field.Format");</script>

  • How to handle dynamically created checkboxes in JSP???

    Hello everybody,
    In a JSP page I would like to create checkbox dynamically on every
    result line (detail line), then check in some of them and finally pass the checked lines to a JSP bean which will handle them on a submit button press.
    The problem are:
    - how to index every checkbox in jsp result line in jsp page in order to avoid solutions like this:
    <input type=checkbox" name="value1">
    <input type=checkbox" name="value2">
    etc
    - how to read every checkbox to find the checked ones
    Is there anobody who has any experience from case like this?
    Please, help me.
    Best regards,
    Danny

    Hi, first off, no need to determine what has been checked or not. If the checkbox is checked, on the post, the value will be submitted as part of the request. If the checkbox is not checked, it will not be submitted (it's value will be null). Depending on what you need, I have approached this a number of different ways. One way is to name all checkboxes the same name. If you need to distinguish between two rows in the form, then in the value field for the checkbox, use some type of distinguishing factor, for example,
    <input type=checkbox name=chkName value="1:abc">
    <input type=checkbox name=chkName value="1:def">
    Now, you only have to make one call on the Servlet/JSP receiving the form post, request.getParameterValues("chkName") which will return an array of the non-null Strings that were checked.

Maybe you are looking for

  • Mail sick after Leopard upgrade

    Hi everyone I originally added my comments to another thread, but that person's problem has been solved, while mine has not, so I had better post separately. I had no problems with Mail before I upgraded to Leopard. After I upgraded, Mail wouldn't bo

  • Splitting of fields using BPM

    hi   my scenerio is about file to JDBC .  my flat file contains some 20 rows,just i want to split into 4 rows and then transfer into sql server.   how i want to split the fields using BPM. thx in advance. Message was edited by:         tamilarasan ka

  • Dual Corei5 vs quad corei5

    I am planning on purchasing a new iMac in the next several months. My budget allows me to get either a 21.5" with a dual core 3.6GHz core i5 or a refurbished 27" quad core 2.8GHz core i5. The screen size is not an issue for me but speed is. Does anyo

  • Constant system overload errors

    Since yesterday I can't play any project anymore. When I hit play the projects plays for two seconds, slows down and a system overload error pops up saying 'system overload or disk too slow'. Logic crashes after that. Nothing on my system has changed

  • E-mailed Flip Book Won't Play Sound

    My inDesign created flip book audio works fine in preview and when I open in browser or flash player from hard drive, but when I e-mail it as an attachment, using gmail and google Chrome, the sounds won't play. Any suggestions? Many thanks...