cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP WD, Multiple Row selection in table control without using Crtl key

Former Member
0 Kudos

Hi all,

I am displaying the records using the table control, i have to select the multiple records in the list <b>without using Crtl key</b>.

How do i solve this?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Koen, but I want to select multiple rows <b>without using Crtl key</b>, but still I have to use this key to select various rows.

mohammed_anzys
Contributor
0 Kudos

Hi Antonio,

Does it answer your question.

Thanks

Anzy

Former Member
0 Kudos

Yes, thanks a lot.

mohammed_anzys
Contributor
0 Kudos

Hi

Hope it solved your problemd.please award point and close the thread.

Thanks

Anzy

Former Member
0 Kudos

Hi,

you should set the table parameter selectionMode to multi or multinolead

than you can select multiple records,

these you can retrieve: lt_selected_elements = node->get_selected_elements( ).

also see this <a href="https://forums.sdn.sap.com/click.jspa?searchID=4209200&messageID=3544158">thread</a> for info

grtz,

Koen

mohammed_anzys
Contributor
0 Kudos

Hi

Yep , you can implement this using OnleadSelection method available in your table.In the onLeadSelection method add the current lead element to the selected elements using the SET_SELECTED .

In this way , during every lead selection , that particular element will be added to teh selected list.

Also in the lead selection method , you should check whether the element is already there in the selected list , if its there , then you should remove that from the list.

In this way , if you click on a row for twice , it will get de selected.

Thanks

Anzy