Skip to Content
avatar image
Former Member

Check box in a table and multiple row selection

Hi all

My requirement is that i have to put checkbox in a table for each row..

so tht i can select multiple rows by checking the check box

and when i click submit whole of the data for all selected rows should go to the back end..

My problem is..

1) I can't check or uncheck the checkboxes

to make it checked or unchecked i hv to make the table editable

doing this all the fields become editable which i dnt want..

My portal is working on SP10.

2) And hw all the data for the selected rows can be saved to the back end..

i can do it if i select for one row..

but how if i select multiple rows.

Thanks

Monika

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 15, 2007 at 10:52 AM

    Hi Monika,

    you should set the selection mode of your table to "multiple", then you can select multiple rows without set the editing.mode to "Editable".

    For passing multiple data to your backend system you can have a look here:

    https://wiki.sdn.sap.com/wiki/display/VC/Selectingmultiplevalues">https://wiki.sdn.sap.com/wiki/display/VC/Selectingmultiplevalues</a>

    Best Regards,

    Marcel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2007 at 03:58 AM

    Hi Marcel

    I have gone thru the link but this is not my requirement..

    I want checkboxes to be inserted in table to select rows..

    When i put checkboxes into the table it is disabled..

    and to make it enable i hv to make the table editable..

    n i dnt wanna make the table editable

    and my other reqmt is that i hv to select the checkboxes to select rows..

    so tht selected rows data goes to back end..

    but this is not working

    Pls help

    Thanks

    Monika

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Make the table editable. Then select every control and set its disabled property to true in General properties Tab. So the row data is not editable, while you can select the checkbox.

      But i am not sure, if you check multiple checkboxes, you can do multiple selection.

      Regards,

      Sooraj

  • avatar image
    Former Member
    Feb 16, 2007 at 06:51 AM

    Hi sooraj

    Thanks for reply

    ya it worked

    bt when i select multiple checkboxes all values dont go the back end

    only one row values go

    Can u help

    Monika

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Monika,

      there is also the possibility to pass the whole table to the backend system. You can use then an ABAP Coding, which selects those rows, which the checkboxes were checked. These rows are passed into the BAPI/function module.

      This scenario you can always use if a BAPI or VC doesn't support a function resp. your requirements. In this case you must programm an ABAP RFC. I wrote a blog about using this RFC function modules. If you are interested in you can find my blog <a href="/people/marcel.salein/blog/2007/02/01/visual-composer-and-abap-rfcbapi-a-powerful-combination-part-i">here.</a>

      Best Regards,

      Marcel