on 04-14-2008 12:40 PM
Hello experts.
I have a table with some columns (Textviews and InputFields) and a Delete button.
One of the requirements is that the LeadSelection will be set to None, which means that the user will set the cursor on one of the InputFields and by pressing the button the row will be deleted, and (of course) it means that i have no lead selection to work with.
How can i do that? i know that in WD4J it can be done.
Thx.
Motty.
Hi,
data: lo_nd_user_entities TYPE REF TO if_wd_context_node,
ls_user_entities TYPE wd_this->element_user_entities,
lt_elements TYPE wdr_context_element_set,
lo_elements TYPE REF TO if_wd_context_element.
lt_elements = lo_nd_user_entities->get_selected_elements( ).
CHECK NOT lt_elements[] IS INITIAL.
IF lt_elements IS NOT INITIAL.
LOOP AT lt_elements INTO lo_elements.
Get Contents of selected Lines............
CALL METHOD lo_elements->get_static_attributes
IMPORTING
static_attributes = ls_user_entities.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi motty.....
you can use the method get_selected_elements in if_wd_context_node and get the element and then delete it.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.