04-27-2009 11:26 AM
Hallo everyone,
I have handled a local class as follows, in order to trigger some events of the class CL_GUI_LIST_TREE
SET HANDLER g_application->handle_checkbox_change FOR mo_alv_tree.
SET HANDLER g_application->handle_expand_no_children FOR mo_alv_tree.
I have also called the following event-handler-calling method.
CALL METHOD cl_gui_cfw=>dispatch
IMPORTING
return_code = l_return_code.
As a result, only the CHECKBOX_CHANGE is triggered.
How can i let also the EXPAND_NO_CHILDREN trigger?
Regards,
Christian
04-27-2009 12:53 PM
Have you checked SAPTLIST_TREE_CONTROL_DEMO, and there the registration of the events in list_tree_control_demoF01?
04-27-2009 1:17 PM
Hello Mathias,
Yes, I have already seen the Program. And I don't understand why by clicking on "Dynpro" the event is not triggered, and why by clicking on "Programs" the event is triggered.
Regards,
Christian
04-27-2009 11:15 PM
Hello Christian
On our ERP 4.6c system the sample report SAPTLIST_TREE_CONTROL_DEMO shows the expected behaviour. By clicking on the triangle in front of the nodes "Dynpro" or "Programs" the node is expanded and the children are displayed.
If the node "Dynpro" is not expanded (but node "Programs") this means that "Programs" has children whereas "Dynpro" has not.
Regards
Uwe
04-28-2009 7:54 AM
Hello Uwe,
Each of them- "Dynpro" and "Programs" has 2 entries:
Dynpro 0100 Müller
0200 Harryhirsch
Programs SAPTROX1
SAPTRIXTROX
How can you say that "Programs" has children and "Dynpros" not?
Regards,
Christian