Hi Robert,
You can achieve your requirement as below
- To switch off the lead selection for first time
- You need to UN-CHECK the Initialization Lead Selection from properties of you node as below
- To process the selected row from table
- Create an action "LEAD_SELECT" in view
- Set the created action to "OnLeadSelect" event of your table ui element
- Now, write the below code in event handler method "ONACTIONLEAD_SELECT"
DATA lo_ctx_element TYPE REF TO if_wd_context_element.
data ls_data TYPE wd_this->element_node_name.
"get the selected element
lo_ctx_element = wdevent->get_context_element( name =
'NEW_ROW_ELEMENT' ).
IF lo_ctx_element IS NOT BOUND.
RETURN.
ENDIF.
" get the data of selected row
lo_ctx_element->get_static_attributes(
IMPORTING
static_attributes = ls_data
).
Hope this helps you.
Regards,
Rama