Skip to Content

How to remove lead selection in table dynamically

I have a table in webdynpro which allows multiple selections of row. I have a button which is supposed to be clicked after selecting single or multiple rows. After clicking on the button I want to remove the lead selection of the selected rows (which is shown in golden color for each selected row) .

I tried REMOVE_SELECTED ELEMENTS and it works fine but only if i select the row by pressing CTRL. If i had selected a single row by just a mouse click (without ctrl) then it wont work.

THANKS

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 20, 2011 at 08:04 PM

    Hallo Amber,

    If_wd_context_node has static attribute no_selection. use that to clear the lead_selection_index.

    node->set-lead_selection_index( if_wd_context_node=>no_selection ).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 20, 2011 at 06:28 PM

    Hi

    Try set lead selection = -1

    Regards

    Yuval

    Add comment
    10|10000 characters needed characters exceeded