cancel
Showing results for 
Search instead for 
Did you mean: 

Table UI

Former Member
0 Kudos

Hi,

I'm having a table UI element with 3 columns.

I'm populating 5 records.

When i select a field in row 2, entire row should be selected.

How can i do this?

Sample codes are welcome.

Thx,

Patrick

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi patrick......

in the properties of the table ui element you have an option called rowselectable. just check it.

---regards,

alex b justin

Former Member
0 Kudos

Hi, alex,

I think you have misunderstand the Patrick's mean.

ex. When Patrick type data to inputfield, and click enter in a field of the row, The row would be selected.

I think the Wenonah's reply is right for Patrick's question

Best regards,

tao

Former Member
0 Kudos

Hi Patrick,

As far as I know, the table UI element doesn't have any event for selecting a field in a particular row. The ALV however, has an event which captures any action in a cell.

In case you are able to capture the selection of a cell, then you can write code similar to the following:

 
data lo_element type if_wd_context_element.

call method wdevent->get_context_element
exporting 
    name = 'CONTEXT_NODE'
receiving
    value = lo_element.

call method lo_element->set_selected
exporting
   flag = abap_true.

Regards,

Wenonah