cancel
Showing results for 
Search instead for 
Did you mean: 

Unselect all records in WD Table and WD ALV, how to?

Former Member
0 Kudos

Hi web developers,

I am trying to use 2 components simultaneously and make them dependant on event in each other.

First component is standard WD Table object.

Second is WD ALV.

I want to enforce that only one row of one of theese components can be selected at a time.

So when I select line in Table - all ALV rows should be unselected.

And the other way round.

Do you know how can I achieve the unselection for components mentioned?

Would appreciate your comments on that .

Regards,

bob

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Bob,

IF_WD_CONTEXT_NODE has two methods that might help you.

  • CLEAR_SELECTION clears all selected elements.
  • SET_SELECTED allows you to set the element at a particular index either selected or deselected.

You can configure how many elements may be selected at one time with the context node's Selection property, e.g., . 1..n, 1..1, etc.

Cheers,

Amy

Former Member
0 Kudos

Hi Amy, I tried both before posting this thread.

Unfortunately both didn't work, selection was not cleared.

I found another solution that works:

      CALL METHOD lo_node->set_lead_selection_index
      EXPORTING
        index  = 0
        .

Answers (0)