cancel
Showing results for 
Search instead for 
Did you mean: 

selected row in table

Former Member
0 Kudos

Hi,

I have created a table with values in web dynpro. Now i want to display another table when user click on any row. Which event should i use to get the values of the selected row, so i can display them in another table on the same view.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

attach an event to onSelect event of Table UI Control

and in the Event Handler use the following code to get the selected element.

data: lr_element type ref to if_wd_context_element.

lr_element = wd_event->get_context_element( 'CONTEXT_ELEMENT' ).

Abhi

Former Member
0 Kudos

what is the difference b.w onleadselect and onselect?

Thanks,

abhimanyu_lagishetti7
Active Contributor
0 Kudos

There is no onSelect for table UI element. It is onLeadSelect Only

Abhi

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> There is no onSelect for table UI element. It is onLeadSelect Only

>

> Abhi

I think you better take a closer look the next time you are in Web Dynpro - there sure are two different events - onSelect and onLeadSelect. Not sure what you are looking at. Be careful about posting incorrect information.

As to the difference in short it has to do with how many rows can be selected. For the full details check out the very nice blog by Thomas Szuecs:

[/people/thomas.szcs/blog/2006/07/24/basic-concepts--selection-vs-leadselection|/people/thomas.szcs/blog/2006/07/24/basic-concepts--selection-vs-leadselection]

Answers (0)