Select multiple checkbox

hi all
i want to add  many checkbox in the "input form" using my query values and when i check some of the checkox , i want to filter my "output table" with my selections. how can i do this??

If your not familiar with BAPI you might try the following:
Create several check-boxes at the input form (e.g. actual, budget, rolling forecast).
Add a query and a chart.
Create a datastore.
In the datastore insert (bool) variables  - same amount as checkboxes (e.g. check_act/ check_bud etc.).
Link input form checkboxes to datastore variables.
In the chart create several dataservices.
In the dataseries multiply the @store_check_act with the normal dataseries (result query).
You can set the default value of the checkbox in the store to "true" or "false".
So when you start the model for example your actual and budget output is shown (default true) and RF= false.
If the RF box is checked, you have to press submit again and value in the store is set to true and output is visible.
Hope this helps.
Regards
Bart
Edited by: Bart B on Dec 24, 2007 8:32 AM

Similar Messages

  • Selecting multiple checkboxes with a button

    Hi, I'm currently making a booking form with a clickable map.  I'm trying to figure out the way to select multiple checkboxes (i.e. a zone on the map) with one button/checkbox.  Thanks!

    Just give them all the same name (and export value) and when you tick one, the others will be ticked automatically as well.

  • Selecting multiple checkboxes...Please Help!!!

    I am having an issue I have multiple checkboxes - once the checkboxes are selected, I would like some information to appear in a field and if checkbox is deselected I would like the text to disappear.
    My major problem is if all the checkboxes are selected at one time and the information appears in the textbox only one line of text will appear at once and I would also like for text to appear on separate lines and not on the same line.
    This is what I am working with now:
    if 
    (RadioButtonList4.rawValue == true) TextField.rawValue
    = "This is a value set using a script.";
    else
    TextField1.rawValue
    = "";
    Please Help
    Tammi

    Humm... did you make the Textfield multiline? (Sry but the easiest solutions often are overseen.)
    Okey I try to get what you want. I hope I got you right and didn't completly missunderstand you...
    Let's assume there are 4 checkboxes.
    Okey so the user has 5 options. He can choose each of the checkboxes and NO more or he can choose them all...
    choosing 2 out of 4 is not possible.
    javascript:
    if (this.rawValue == 1 && (checkbox1.rawValue == 1 || checkbox3.rawValue == 1 || checkbox4.rawValue == 1))
    // will select everything when more then one checkbox is selected... this one only goes for checkbox 2 the other are nearly the same though!!!
         checkbox1.rawValue = 1;
         checkbox2.rawValue = 1;
         checkbox3.rawValue = 1;
         checkbox4.rawValue = 1;
    if (this.rawValue == 0) // will deselect everything if one checkbox is deselected...
         checkbox1.rawValue = 0;
         checkbox2.rawValue = 0;
         checkbox3.rawValue = 0;
         checkbox4.rawValue = 0;
    Then you create a Textfield (where you normally input things) and put on the calculate event:
    if (checkbox1.rawValue == 1 || checkbox2.rawValue == 1 || checkbox3.rawValue == 1 || checkbox4.rawValue == 1)
    // will show up if one checkbox is checked. If you want it only to show up if all checkboxes are checked use && instead of ||
    this.presence = "visible";
    else
    this.presence = "invisible";
    if (checkbox1.rawValue == 1 && checkbox2 == 0)
    {this.rawValue = "only checkbox1 is selected";}
    if (checkbox2.rawValue == 1 && checkbox1.rawValue == 0)
    {this.rawValue = "only checkbox2 is selected";}
    if (checkbox3.rawValue == 1 && checkbox1.rawValue == 0)
    {this.rawValue = "only checkbox2 is selected";}
    if (checkbox4.rawValue == 1 && checkbox1.rawValue == 0)
    {this.rawValue = "only checkbox2 is selected";}
    //what will appear if it is only a single checkbox that is selected
    if (checkbox1.rawValue == 1 && checkbox2.rawValue == 1) //don't need the others since it is just one or all
    {this.rawValue = "all checkboxes are selected \ncheck1 \ncheck2 \ncheck3 \ncheck4"}
    The thing is, I don't think you can easily input data in static "text"fields. Since you already know how to show and hide you can do that one on your own I think ^^
    If I missunderstood you and you just want to add/change the text by the checkboxes that are selected plz say so.
    If I got you totally wrong and you just have let's say 10 checkboxes which can be selected and deselected and each one will provide a textfield with data, I can make you a little script for the calculate event...
    Just tell me how many checkboxes they are... could get much to write (especially if they are more checkboxes) but I've got a script that will create even long scripts really fast

  • Problem : Not able to select multiple checkboxes in the JTable

    Here i am trying to select the multiple check boxes in the jtable. But i am not able to do that. I set the jTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); also.
    Can any one help on this...

    [email protected] wrote:
    Here i am trying to select the multiple check boxes in the jtable. But i am not able to do that. I set the jTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); also.
    Can any one help on this...That's row selection, not check boxes. The normal way to have active checkboxes in a JTable is with an editable Boolean column. The effect of clicking such a checkbox is to cause the table to call setValueAt() in the data model with a Boolean object value, and it's up to the data model to deal with that change.

  • How to use a SelectAll box / checkbox to select multiple checkboxes!!

    I have a question regarding checkboxes.
    My jsp page has the following layout generated dynamically based on a drop down selection box.
    ID State Initiated Released Locked
    US Initiated X
    Arg Released X X
    Ger Released X X
    Ita Locked X X X
    The Initated, Released & Locked columns are checkboxes. The checkboxes are enabled or disabled based on the State. This means that if the state is Initaited, the user will click the desired checkbox, while the others in the same row will be disabled, and so forth.
    Now all I want is the option of having a SelectAll button / checkbox (something like in yahoo,hotmail) for each column (Initiated,Released,Locked), which when clicked will select all the desired checkboxes under them.(which will select only those in the respective state).
    This is basically to make life easier for the user in case there are some 100 rows. Instead of selecting each individually, he can just click a single button for each column. He can then unselect whichever one he wants.
    I know this can be done using javascript. Remember that this list is not static, but dynamic. So I cannot send a fixed no. into my javascript function to iterate. Im using <nested:iterate> & <nested:checkbox> for iterating & displaying the checkboxes.
    If someone has a solution on it please do send me the code snippet.
    Thanks.

    Javascript is the only solution for something like this.
    I presume you are using struts indexed properties?
    Remember that this list is not static, but dynamic. So I cannot send a
    fixed no. into my javascript function to iterateTrue, but once your JSP is generated you know exactly how many controls you have generated using the varStatus of a iterate tag, or just looking at the size() of the list being iterated on. You can use that to generate the javascript function/call.
    Also you can use javascript without knowing exactly how many are there. You can actually discover the fields on the page.
    Hope this helps,
    evnafets

  • Problems with selecting multiple checkboxes

    Hi! I'm very new to Javascript and am trying to navigate my way through adding some to a PDF document. 
    I have a document with groups of checkboxes, like
    Fiber
    Total Dietary Fiber
    Soluble Dietary Fiber
    Insoluble Dietary Fiber
    Pectins
    So if Fiber is selected, I would like all four options below it to also be automatically selected, and deselected if Fiber is unchecked. 
    I was trying to alter code from this discussion, http://forums.adobe.com/message/3496310, but I can't get it to work correctly. 
    This is what I have now -
    function cbControl() {
        var f1 = this.getField("Fiber");
        var f2 = this.getField("F1");
        var f3 = this.getField("F2");
        var f4 = this.getField("F3");
        var f5 = this.getField("F4");
    if (event.target === f1) {
            f2.value = "On";
                   f3.value = "On";
            f4.value = "On";
            f5.value = "On";
    Any help would be greatly appreciated!

    What specifically  is not working properly?
    Are you calling this function? I do not see the code.
    When are you calling this function?
    The value of a check box or radio button group is either "Off" (no item selected), or the export or checked value for the specific field. The default value of a button is :Yes".
    For the mouse up action:
    function cbControl() {
        var f2 = this.getField("F1");
        var f3 = this.getField("F2");
        var f4 = this.getField("F3");
        var f5 = this.getField("F4");
    if (event.target.value == "Yes") {
            f2.value = "Yes";
            f3.value = "Yes";
            f4.value = "Yes";
            f5.value = "Yes";
           } else {
         f2.value = "Off";
            f3.value = "Off";
            f4.value = "Off";
            f5.value = "Off";
    cbControl();
    Check the export.option values for you check boxes and adjust your code accordingly.
    Another option would be to use the "isBoxChecked" methiod to test if the item is selected and use the "chekcThisBox" to check or un-check the other boxes.
    function cbControl() {
        var f2 = this.getField("F1");
        var f3 = this.getField("F2");
        var f4 = this.getField("F3");
        var f5 = this.getField("F4");
    var bSelected = event.target.isBoxChecked(0);
        f2.checkThisBox(0,bSelected);
        f3.checkThisBox(0,bSelected);
        f4.checkThisBox(0,bSelected);
        f5.checkThisBox(0,bSelected);
    cbControl();

  • Multiple checkbox are to be checked when selecting one checkbox in formlayo

    Hi,
    I created the checkbox in apex 4.0, as LOV(list of value), I want to select multiple checkbox at a time ,when by selecting one checkbox among them.......

    Hey,
    try using APEX_ITEM.CHECKBOX.

  • SQL for multiple checkboxes

    Hello!
    I'm stuck on a SQL statement that I was wondering if someone
    could possibly assist me with.
    I working on a search page for a particular company site of
    antique dealers. There is a "Search By Categories" section on the
    main search page where users can select multiple checkboxes to
    return any antique dealers in those categories.
    When the search button is clicked, a comma delimited string
    of category IDs is passed to the search results page. (ex.
    "2,14,15,20,22,25,37,40")
    Each antique dealer has a database field that contains a
    comma delimited list of any category IDs that they are associated
    with since they can be associated with more than one category if
    they'd like to be...and just about all of them are currently
    associated with more than one category
    SO...we have a string being passed from the search page that
    could look something like this: 2,14,18,20,22,25,37,40,64
    ...and in the database each dealer has a DealerCats field for
    all the categories they're associated with that might look like
    this: 6,7,18,30,64,66
    My question is: how can I write the select statement to
    basically say "select all dealers from the Dealers table where any
    of the passed category IDs (clicked on from the search page) exist
    in the DealerCats field for each dealer?"
    I already tried something to the effect of:
    SELECT * FROM DEALERS
    WHERE DealerCats IN (#FORM.dealerCat#)
    ...but this did not work. I don't get an error, I just get a
    blank content area (the rest of the template is not broken in any
    way...just blank area where either results should appear or a "no
    results" message should appear.
    Also, I DID create a page that displays both the form value
    of the selected checkboxes as well as any given DealerCats field in
    the database to make sure that both are comma separated values
    formatted exactly the same.
    Unfortunately, I am unable to provide outside access to the
    testing server that I'm working off of for this particular company,
    so I do apologize.
    However, if anyone understands what it is I am trying to
    accomplish and can based on my explanation, I hope that will help.
    Feel free to ask for any additional clarification.
    Thank you very much!!!
    - Tony
    Chicago, Freelance Web Developer

    Hi,
    Thanks for responding!
    I need a little clarification, if you don't mind, so please
    bear with me here...
    Basically, I created a database admin tool to add/edit/delete
    dealers and categories because other users will need to eventually
    need to have access to it. For each dealer record, a list of
    checkboxes is dynamically created (linked from the categories
    table) so that any given category can be clicked on that the dealer
    would like to be associated with.
    If all I needed to do is display the categories, this would
    be fine.
    If only ONE category was allowed and I only needed to do a
    check against one category, this would also probably be fine.
    So, I was hoping I could try to still make this work since
    the database admin tool was proving to work very well up til this
    point. But you are right...a many-to-many setup is going to be the
    way to go, it seems (and in most cases, it usually is anyway).
    My guess is you're suggesting a 3rd table (a many-to-many
    table) that has one column that has Dealer IDs and another that has
    Category IDs that are both linked from the Dealers and Categories
    tables. Yes?
    My quesion is: since each dealer can be associated with more
    than one category, and the object is to do away with a comma
    delimited list, are you suggesting it be set up so that each dealer
    ID would be repeated 1 record at a time for each different category
    it's associated with? For example:
    DealerID | CategoryID
    1 10
    1 15
    1 22
    1 40
    2 1
    2 8
    2 18
    2 21
    2 22
    2 25
    2 35
    3 12
    3 20
    3 34
    ...etc. etc. etc.
    I'm just trying to make sure I'm understanding what you would
    suggest here.
    Thanks so much for your assistance!
    Best,
    Tony

  • How to  select multiple chek in checkbox in alv

    how to  select multiple chek in checkbox in alv

    Hi,
    Following report is the checkbox alv sample report.
    REPORT  YMS_CHECKBOXALV.
    TYPE-POOLS: slis.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
    DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
    DATA: s_layout TYPE slis_layout_alv.
    DATA: BEGIN OF itab OCCURS 0,
    icon TYPE icon-id,
    vbeln TYPE vbeln,
    kunnr TYPE kunnr,
    erdat TYPE erdat,
    box TYPE c,
    END OF itab.
    DATA: v_repid TYPE syrepid.
    START-OF-SELECTION.
    Get the data.
    SELECT vbeln kunnr erdat UP TO 100 ROWS
    FROM vbak
    INTO CORRESPONDING FIELDS OF TABLE itab.
    IF sy-subrc <> 0.
    MESSAGE s208(00) WITH 'No data found'.
    LEAVE LIST-PROCESSING.
    ENDIF.
    Modify the record with red light.
    itab-icon = '@0A@'.
    MODIFY itab TRANSPORTING icon WHERE NOT vbeln IS initial.
    v_repid = sy-repid.
    Get the field catalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '1'.
    s_fieldcatalog-fieldname = 'ICON'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-seltext_l = 'Status'.
    s_fieldcatalog-icon = 'X'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'VBELN'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'VBELN'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '3'.
    s_fieldcatalog-fieldname = 'KUNNR'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'KUNNR'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    CLEAR: s_fieldcatalog.
    s_fieldcatalog-col_pos = '4'.
    s_fieldcatalog-fieldname = 'ERDAT'.
    s_fieldcatalog-tabname = 'ITAB'.
    s_fieldcatalog-rollname = 'ERDAT'.
    APPEND s_fieldcatalog TO t_fieldcatalog.
    Set the layout.
    s_layout-box_fieldname = 'BOX'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = v_repid
    is_layout = s_layout
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat = t_fieldcatalog[]
    TABLES
    t_outtab = itab.
    FORM SET_PF_STATUS *
    --> EXTAB *
    FORM set_pf_status USING extab TYPE slis_t_extab.
    SET PF-STATUS 'TEST2'.
    ENDFORM.
    FORM user_command *
    --> UCOMM *
    --> SELFIELD *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    Check the ucomm.
    IF ucomm = 'DETAIL'.
    LOOP AT itab WHERE box = 'X'.
    itab-icon = '@08@'.
    MODIFY itab TRANSPORTING icon.
    ENDLOOP.
    ENDIF.
    selfield-refresh = 'X'.
    ENDFORM.
    Thanks,
    Sankar M

  • Switched from Samsung Note 2 to iphone 6. Faced Difficulties while sending message. [1]Multiple Selection of receipients is not available. Eg. If I click plus, it shows me all the contacts but i cannot select multiple contacts using checkbox

    Phone : IPhone 6
    OS : 8.1
    Problem Statement : Multiple Selection of Recipients while drafting New Message in SMS.
    Expected Solution : Checkbox should have been provided to select multiple contacts using one screen

    Thanks for the reply.. I also tried that way.. I face couple of issues
    1) I could not find an option of saving a Draft Message
    2) After multiple recipients(I have selected 12 recipients) in "TO" section, if I type a word in "TO" such as "Pre", it shows me all the contacts containing "Pre"  but I cannot select the last contact incase there are more than 20 contacts coz I am unable to scroll down till the end.. If I do so.. I cannot select coz screen scrolls up automatically..
    Pls try ... If required I will insert video

  • ADF multiple row selection using checkbox

    One of the basic feature missing in ADF 11g is multiple row selection using checkbox (ADF supports multiple row selection by CTRL+CLICK) and business users doesn't like the idea of CTRL+CLICK especially when the volume of click is more. Our requirement is to show the records as selected, on click of checkbox. We implemented multiple row selection by giving a checkbox and on submission, iterate all the rows and filter only selected rows for further processing. The approach works fine,but it is very slow when the volume of data is more, say 10 thousand rows. For 4 thousand records, iterating everything takes more than 200 secs !
    Had the multiple row selection been the ADF standard way using CTRL+CLICK, and retrieving the selected rows using method theTable.getSelectedRowKeys() works much faster (completes in millisecs for 4 thousand records). Somehow ADF fetches the selected records much faster this way. Our requirement is on click of the checkbox, the ADF should select the records ( the same way it is doing CTRL+CLICK) and all such selected rows should be retrievable using the ADF method theTable.getSelectedRowKeys()
    Is there any way it can be done?
    Regards,
    Antony.

    Hi All,
    We have implemented the select and select all using check-box and it is working fine. Issue here is the performance is too slow
    Assume SelectValue is the VO coulmn for the checkbox to select the values. To filter out the selected rows, we use the following line
    Row[] pidRows = pidView.getFilteredRows("SelectValue", Boolean.TRUE);
    it is very taking more than 2 minutes if the total number of rows are *4 thousands* and only if 2 rows are selected.
    Whereas with the CTRL+CLICK standard approach, ADF has a built in API theTable.getSelectedRowKeys(); to get only the selected rows, and the built in API takes only few milliseconds to get the selected rows. Users are not agreeing to the CTRL+CLICK approach as it is not user friendly. Suggest if there is a way to make the select box to make it work the same way as CTRL+CLICK.
    code snippet to do the standard way :
    RowKeySet sk = theTable.getSelectedRowKeys();
    _logger.info("row count of select "+sk.getSize());;+
    Iterator selection =sk.iterator();
    EmpVORowImpl empRow = null;
    +while (selection.hasNext()) {+
    Object rowKey = selection.next();
    theTable.setRowKey(rowKey);
    rowdata = (JUCtrlHierNodeBinding)theTable.getRowData();
    empRow  = (EmpVORowImpl)rowdata.getRow();
    _logger.info("Emp # "+empRow.getEmpno() +" Emp Name : "+empRow.getEname() +" Is selected ? "+empRow.getisChecked());+
    +}+

  • How to read data after select multiple record by checkbox,

    hi experts
    i  m using simple report with check box , and itab whcih contain records
    how to read data after select multiple record by checkbox,
    thanks

    Hi Prashant,
       Try using this logic.This Code displays the list with check boxes. When you check a checkbox and press a button say 'Select All' or 'De Select all' or 'Display'. It will read the data of those records.
    DATA :
      fs_flight TYPE type_s_flight,
      fs_flight1 TYPE type_s_flight1.
    * Internal tables to hold Flight  Details                             *
    DATA :
      t_flight LIKE
      STANDARD TABLE
            OF fs_flight,
      t_flight1 LIKE
       STANDARD TABLE
             OF fs_flight1.
    SET PF-STATUS 'SELECT' .
    PERFORM selection.
    PERFORM displaybasic .
    *                      AT USER COMMAND EVENT                          *
    AT USER-COMMAND.
      PERFORM selectall .
    *&      Form  SELECTION
    *      Select query to reteive data from SPFLI table
    *  There are no interface parameters to be passed to this subroutine.
    FORM selection .
      SELECT  carrid                       " Airline Code
              connid                       " Flight Connection Number                  
        FROM  spfli
        INTO TABLE t_flight.
      DESCRIBE TABLE t_flight LINES w_lines .
    ENDFORM.                               " SELECTION
    *&      Form  DISPLAYBASIC
    *      Display the basic list with SPFLI data
    *  There are no interface parameters to be passed to this subroutine.
    FORM displaybasic .
      LOOP AT t_flight INTO fs_flight.
        WRITE :
             w_check AS CHECKBOX,
             w_mark,
             fs_flight-carrid UNDER text-001,
             fs_flight-connid UNDER text-002.
      ENDLOOP.                             " LOOP AT T_FLIGHT..
      CLEAR fs_flight-carrid .
      CLEAR fs_flight-connid.
    ENDFORM.                               " DISPLAYBASIC
    *&      Form  SELECTALL
    *      To check all the checkboxes with a 'selectall' push button
    *  There are no interface parameters to be passed to this subroutine.
    FORM selectall .
      CASE sy-ucomm.
        WHEN 'SELECT_ALL'.
          w_check = 'X'.
          w_line = 4 .
          DO w_lines TIMES.
            READ LINE w_line .
            MODIFY LINE w_line FIELD VALUE w_check .
            ADD 1 TO w_line .
          ENDDO.                           " DO W_LINES TIMES
          CLEAR w_line.
        WHEN 'DESELECTAL'.
          w_check = space.
          w_line = 4 .
          DO w_lines TIMES.
            READ LINE w_line FIELD VALUE w_mark .
            IF w_mark = space .
              MODIFY LINE w_line FIELD VALUE w_check .
            ENDIF.                         " IF W_MARK = SPACE
            ADD 1 TO w_line .
          ENDDO.                           " DO W_LINES TIMES
        WHEN 'DISPLAY'.
    IF sy-lilli BETWEEN 4 AND w_lines .
        DO w_lines TIMES.
          READ LINE w_num FIELD VALUE w_check INTO w_check
                                     fs_flight-carrid INTO fs_flight-carrid
                                     fs_flight-connid INTO fs_flight-connid.
          IF sy-subrc = 0.
            IF w_check = 'X'
              SELECT  carrid
                      connid
                      fldate               " Flight date
                      seatsmax             " Maximum capacity in economy
                      seatsocc             " Occupied seats in economy class
                FROM  sflight
                INTO  TABLE t_flight1
               WHERE  carrid = fs_flight-carrid
                 AND  connid = fs_flight-connid.
              LOOP AT t_flight1 INTO fs_flight1.
                WRITE :
                  / fs_flight-carrid UNDER text-001,
                    fs_flight-connid UNDER text-002,
                    fs_flight1-fldate UNDER text-007,
                    fs_flight1-seatsmax UNDER text-008,
                    fs_flight1-seatsocc UNDER text-009.
              ENDLOOP.
            ENDIF.                         " IF SY-SUBRC = 0
          ENDIF.                           " IF W_CHECK = 'X'.
          ADD 1 TO w_num.
        ENDDO.                             " DO W_LINES TIMES
        CLEAR w_check.
        w_num = 0.
      ELSE .
        MESSAGE 'INVALID CURSOR POSITION ' TYPE 'E' .
      ENDIF.                               " IF SY-LILLI BETWEEN..
    ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " SELECTALL
    Much Regards,
    Amuktha.

  • Selecting multiple rows using column header with checkbox in it.

    Dear All.,
    I am trying to select multiple rows with checkbox in column header but it doesnot works...
    Following is my codel
    <af:table value="#{bindings.xx.collectionModel}"
                          var="row"
                          rows="#{bindings.xx.rangeSize}"
                          emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.xx.rangeSize}"
                          rowBandingInterval="1"
                          filterModel="#{bindings.xx.queryDescriptor}"
                          queryListener="#{bindings.xx.processQuery}"
                          varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
                          selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
                          selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
                          rowSelection="none" id="tCdMast" width="400"
                          columnStretching="column:c4" inlineStyle="height:200px;">
                  <af:column sortProperty="ChkFlag" filterable="true"
                             sortable="true"
                             headerText="#{bindings.xx.hints.ChkFlag.label}"
                             id="c2" width="55"
                             inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
                    <af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
                                              selected="#{row.ChkFlag}" id="sbcChkFlag"
                                              autoSubmit="true" immediate="true"/>
                    <f:facet name="header">
                      <af:selectBooleanCheckbox simple="true"
                                                autoSubmit="true"
                                                valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
                                                id="sbcSelectAll"/>
                    </f:facet>
                  </af:column>
    </af:table>
    Managed Bean
        public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
            Boolean newValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
                                            "false"));
            Boolean oldValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
                                            "false"));
            if (newValue.equals(oldValue))
                return;
            int rowIndex=0;
            ViewObject vo = u.findIterator("xxIterator").getViewObject();
            vo.reset();
            while(vo.hasNext()){
              Row row;
              if(rowIndex==0)
                  row=vo.first();
              else
                  row=vo.next();
                 row.setAttribute("ChkFlag", newValue.booleanValue());
              rowIndex=1;
            u.addPartialTargets(tableDocuments);
        }Please help!!.
    Thanks & Regards,
    Santosh.
    jdeve 11.1.1.4.0

    Can you check this sample in the blog post?
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Thanks,
    Navaneeth

  • Inserting multiple selection from checkbox in to one column of the database

    Hi,
    how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
    Anyone can u reply me
    Thanx

    hhhmmm.... is this what you mean?
    lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
    now the question is:
    Is it going to be one column one row?
    datafield
    value1,value2,value3
    Or one column multiple row?
    datafield
    value1
    value2
    value3
    Which is it?

  • Multiple selection of checkbox  in  jtable

    hi
    I am using jtable in which first coloumn is using checbox.Ihave used celleditor and cell renderer for that.I want to check multiple checboxes
    at a time and on click of update button wanto send that information to database.But i m not able to check multiple checkboxes.As sson as i click on 2nd checkbox prwvious selection get cleared.Please help me as soon as possible.

    .Ihave used celleditor and cell renderer for that.I want to check multiple checboxesThere is no need to use custom renderers or editors, they are provided by the JTable.
    Read the JTable API and follow the link to the Swing tutorial on "How to Use Tables" for a working example.

Maybe you are looking for

  • I recently upgraded to 10.8.2 and now my iphone4S won't sync my calendars

    I recently upgraded to 10.8.2 and now my iPhone4S won't synch my calendar

  • Displaying 10 records per page

    hi, somebody please help me..... i have a list of more than 20 records which i get from database and then i put it in session. i have to display 10 records per page only and on the same page i'd like to have links to page numbers to view next set of

  • How to have image instead of blank player screen

    I know virtually nothing about Dreamweaver and Flash...I know how to update page, embed .flv files, etc, and how to encode videos, but that's it. I am a videographer by trade. I am putting videos up on my new website and they are not going to be auto

  • It's possible to disable "Transfer-Encoding: chunked" in WebDAV Finder PUT requests ?

    Hi, Since Mac OS X 10.5.4 version, Apple WebDAV finder client use "Transfer-Encoding: chunked" in PUT request. Very very few HTTP Server, HTTP Proxy support this feature. Are there a flag to disable this feature ? If not, can you append it in futur O

  • Scans are magnified

    I changed a document setting so that scans would be two sided. After that all of my scans came out magnified, therefore only a partial document shows.  How can I set this back to default?