cancel
Showing results for 
Search instead for 
Did you mean: 

Table UI - Selection

Former Member
0 Kudos

Hi,

I'm have a table UI element and it contains 5 rows.

If i'm clicking any field in row 3, the lead selection should be pointed to row 3 and the row should be selected.

How can i do???

Thx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is possible by using the following:

lo_element = wdevent->get_context_element(

name = 'CONTEXT_ELEMENT').

  • get all declared attributes

lo_element->get_static_attributes(

importing

static_attributes = ls_stru ).

call method lo_node->set_lead_selection

exporting

element = lo_element .

Shruthi

Former Member
0 Kudos

Shruthi,

Thanks for the code sample.

I tried but I couldnot know where exactly to place the code and abt wdevent.

Can u help me???

Former Member
0 Kudos

Hi Patrick,

You cannot capture an event for simply clicking on a table cell. There is no such event in the normal table. However, if you have a button, link to action etc in the table column, then you can capture the clicked element and also set that as the selected element. In this case, you need to first define an action for your ui element (button/link). In the event handler method, wdevent will be an importing parameter. There you can use that piece of code.

Regards,

Nithya

Answers (0)