cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple selection and lead selection

Former Member
0 Kudos

I have now multiple selection in my application via selectin mode 8. but i also want that the app reacts when i make one selection. the lead_selection argument does not work anymore with mode 8.

Anyone nows how to manage that?

Accepted Solutions (0)

Answers (2)

Answers (2)

baskaran00
Active Participant
0 Kudos

Hi,

u want to know the value/column name of clicked cell in ALV, am i right?

If i'm right do below:

1. Create a event handler with name on_click , while creating the event handler u have to specify the select the event as ON_AFTER_CONFIG (Press F4 on the Event row).

Inside on_click u can get the value of the selected cell.

U have WDEVENT & R_PARAM parameters.

Using these 2 parameters u can get as ur wish.

Reward if useful.

Thanks,

Router

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Once you have a multiselection, you can't use the lead selection any longer. Instead use the node method GET_SELECTED_ELEMENTS( ).

data sel_elements type WDR_CONTEXT_ELEMENT_SET.
sel_elements = lo_node->get_selected_elements( ).

Former Member
0 Kudos

How to trigger that if someone presses on the table bar?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Use the onSelect Event.

Former Member
0 Kudos

I was looking for onselect event. i couldn't find one.

but there was onclick event.

but onclick - nothing happens...

seems that its not possible to get an action on the table in selectionmode 8?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This is a table UI element that you are talking about right? There is no onClick of a table. The only events are onFilter, onLeadSelect, onScroll, onSelect, and onSort.

Former Member
0 Kudos

Oh, no!

I forgot to write that its an alv table...