2012 May 11 9:43 AM
This is an ALV Tree.
When I press the drop down(red circle), nothing happen.
I did a test on my program.
When I take off Register_Event, it works fine.
Please advice.
*Register events for alv tree
PERFORM REGISTER_EVENT.
Thanks,
Wong
2012 May 11 10:59 AM
2012 May 11 9:48 AM
Hi Wong,
what does register_event do? I'd guess it registers the event that is executed when a node is expanded and you are not handling that event in your code or something similar.
Regards
Adi
2012 May 11 10:10 AM
This is my Register_event.
Basically, register a item double click event. So when there is double click event, it will pass to
another place to catch the nodekey and the fieldname.
form REGISTER_EVENT .
*Define local variables
DATA: lt_events TYPE cntl_simple_events,
l_event TYPE cntl_simple_event.
*Frontend registration: add additional event ids
l_event-eventid = cl_gui_column_tree=>eventid_item_double_click.
append l_event to lt_events.
*Frontend registration:provide new event table to alv tree
call method g_alv_tree->set_registered_events
exporting
events = lt_events
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3.
if sy-subrc <> 0.
message x208(00) with 'ERROR'. "#EC NOTEXT
endif.
data: l_event_receiver type ref to lcl_tree_event_receiver.
create object l_event_receiver.
set handler l_event_receiver->handle_item_double_click
for g_alv_tree.
endform. " FM_REGISTER_EVENT
Thanks,
Wong
2012 May 11 10:59 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |