cancel
Showing results for 
Search instead for 
Did you mean: 

Check box in a table and multiple row selection

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I don't have any idea regarding how to select multiple rows with a checkboxes.

I specified my concern regarding this in my last post itself. Anyway, try the following idea.

May be you can use some intermediate table (hidden table) which receives data based on the previous tables checkbox values. Then use the hidden table as input for the data service.

Regards,

Sooraj

Former Member
0 Kudos

Hi

May be this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/927d8c3c-0a01-0010-57b4-e89f505e2bff">video</a> will give you some idea

Regards,

Sooraj

srinivas_anchuri
Explorer
0 Kudos

Hi,

For the table:

<b>Editing Mode</b> is Editable. Disable all the columns other than the check box, individually.

<b>Selection Mode</b> is Multiple.

In the eventing line you pull out to connect to service, set the mapping scope to All data rows. Service can be modified to consider only the checked data.

Hope this helps.

Thanks.

Srinivas.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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:

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

Best Regards,

Marcel